summaryrefslogtreecommitdiff
path: root/inc/fulltext.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2010-02-28 12:31:37 +0100
committerAndreas Gohr <andi@splitbrain.org>2010-02-28 12:31:37 +0100
commitbd0293e7406f93a8897c471193b69413b78b6236 (patch)
treef24a3d4315996173741273b5d36a60b232463505 /inc/fulltext.php
parent9dde1138fb3e544fd2614b77833a76f7ed9f7f81 (diff)
downloadrpg-bd0293e7406f93a8897c471193b69413b78b6236.tar.gz
rpg-bd0293e7406f93a8897c471193b69413b78b6236.tar.bz2
moved number of search result snippets to a define
Diffstat (limited to 'inc/fulltext.php')
-rw-r--r--inc/fulltext.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/inc/fulltext.php b/inc/fulltext.php
index 94c68d675..4f4dc1bfd 100644
--- a/inc/fulltext.php
+++ b/inc/fulltext.php
@@ -9,6 +9,10 @@
if(!defined('DOKU_INC')) die('meh.');
require_once(DOKU_INC.'inc/indexer.php');
+/**
+ * create snippets for the first few results only
+ */
+if(!defined('FT_SNIPPET_NUMBER')) define('FT_SNIPPET_NUMBER',15);
/**
* The fulltext search