_binary From df5dbaae4114c97af5b9a8bb9c29b813e3668532 Mon Sep 17 00:00:00 2001
From: Mangesh Dahale <mangeshadahale@gmail.com>
Date: Wed, 7 May 2014 22:10:07 -0700
Subject: [PATCH] Added centroid summarizer in default_crawl

---
 bin/fetcher.php           | 2 +-
 bin/queue_server.php      | 7 +++++++
 configs/config.php        | 2 +-
 configs/default_crawl.ini | 1 +
 4 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/bin/fetcher.php b/bin/fetcher.php
index d71e8e4..8f2cfe2 100755
--- a/bin/fetcher.php
+++ b/bin/fetcher.php
@@ -314,7 +314,7 @@ class Fetcher implements CrawlConstants
      */
     var $crawl_order;
     /**
-     * Stores the name of the crawler used for crawling.
+     * Stores the name of the summarizer used for crawling.
      * Possible values are Basic and Centroid
      * @var string
      */
diff --git a/bin/queue_server.php b/bin/queue_server.php
index 49a4b03..e966617 100755
--- a/bin/queue_server.php
+++ b/bin/queue_server.php
@@ -170,6 +170,12 @@ class QueueServer implements CrawlConstants, Join
      */
     var $crawl_order;
     /**
+     * Stores the name of the summarizer used for crawling.
+     * Possible values are Basic and Centroid
+     * @var string
+     */
+    var $summarizer_option;
+    /**
      * Maximum number of bytes to download of a webpage
      * @var int
      */
@@ -334,6 +340,7 @@ class QueueServer implements CrawlConstants, Join
 
         //the next values will be set for real in startCrawl
         $this->crawl_order = self::PAGE_IMPORTANCE;
+        $this->summarizer_option = self::CENTROID_SUMMARIZER;
         $this->restrict_sites_by_url = true;
         $this->allowed_sites = array();
         $this->disallowed_sites = array();
diff --git a/configs/config.php b/configs/config.php
index 307879a..222c0d5 100755
--- a/configs/config.php
+++ b/configs/config.php
@@ -106,7 +106,7 @@ if(MAINTENANCE_MODE && $_SERVER["SERVER_ADDR"] != $_SERVER["REMOTE_ADDR"]) {
 if(!defined('WORK_DIRECTORY')) {
 /*+++ The next block of code is machine edited, change at
 your own risk, please use configure web page instead +++*/
-define('WORK_DIRECTORY', 'C:/xampp/htdocs/yioop_data');
+define('WORK_DIRECTORY', '');
 /*++++++*/
 // end machine edited code
 }
diff --git a/configs/default_crawl.ini b/configs/default_crawl.ini
index d939681..620949c 100644
--- a/configs/default_crawl.ini
+++ b/configs/default_crawl.ini
@@ -28,6 +28,7 @@ crawl_type = 'ax';
 page_range_request = '50000';
 page_recrawl_frequency = '-1';
 restrict_sites_by_url = false;
+summarizer_option = 'dl';
 
 [indexed_file_types]
 extensions[] = 'unknown';
-- 
1.9.0.msysgit.0

