Configuration for default sort order
[phinde.git] / data / config.php.dist
index 9170a9f4969940c41a372d03b5e976764034dd4e..19a322156d89648fc19f16912f8c0fe4f0847a3e 100644 (file)
@@ -1,5 +1,7 @@
 <?php
 $GLOBALS['phinde'] = array(
 <?php
 $GLOBALS['phinde'] = array(
+    //name of the app in the frontend
+    'apptitle' => 'website search',
     'elasticsearch' => 'http://127.0.0.1:9200/phinde/',
     //whitelist of domains that shall be crawled
     'domains' => array(
     'elasticsearch' => 'http://127.0.0.1:9200/phinde/',
     //whitelist of domains that shall be crawled
     'domains' => array(
@@ -17,6 +19,8 @@ $GLOBALS['phinde'] = array(
     'subscriptions' => array(
         'http://www.example.org/feed',
     ),
     'subscriptions' => array(
         'http://www.example.org/feed',
     ),
+    //verbose output
+    'debug' => true,
     //time in seconds after which URLs may be re-indexed
     'refreshtime' => 86400,
     //if directly linked URLs shall be indexed, even if they are
     //time in seconds after which URLs may be re-indexed
     'refreshtime' => 86400,
     //if directly linked URLs shall be indexed, even if they are
@@ -30,5 +34,7 @@ $GLOBALS['phinde'] = array(
     'showFullContent' => false,
     //search result "hit" template file
     'hitTemplate' => 'hit.htm',
     'showFullContent' => false,
     //search result "hit" template file
     'hitTemplate' => 'hit.htm',
+    //default sort order: "score" or "date"
+    'defaultSort' => 'score',
 );
 ?>
\ No newline at end of file
 );
 ?>
\ No newline at end of file