diff --git a/inc/fulltext.php b/inc/fulltext.php
index 94c68d675db50fa791ac214c46d33e43b4a6146c..4f4dc1bfdbbda72ae439285df2e26f919e511f54 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
diff --git a/inc/html.php b/inc/html.php
index 04bb986c5dddd09c355ded5886509a6577664f05..f6f73142c00648a3056bc4eabe6ea348f9f6fa60 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -373,7 +373,7 @@ function html_search(){
             print html_wikilink(':'.$id,useHeading('navigation')?null:$id,$regex);
             if($cnt !== 0){
                 print ': <span class="search_cnt">'.$cnt.' '.$lang['hits'].'</span><br />';
-                if($num < 15){ // create snippets for the first number of matches only #FIXME add to conf ?
+                if($num < FT_SNIPPET_NUMBER){ // create snippets for the first number of matches only
                     print '<div class="search_snippet">'.ft_snippet($id,$regex).'</div>';
                 }
                 $num++;