Author: ssmiweve
Date: 2008-11-19 20:49:58 +0100 (Wed, 19 Nov 2008)
New Revision: 6952

Modified:
   trunk/generic.sesam/war/src/main/conf/modes.xml
Log:
make default suggestion command only search any query longer than 2 characters

Modified: trunk/generic.sesam/war/src/main/conf/modes.xml
===================================================================
--- trunk/generic.sesam/war/src/main/conf/modes.xml     2008-11-19 13:47:31 UTC 
(rev 6951)
+++ trunk/generic.sesam/war/src/main/conf/modes.xml     2008-11-19 19:49:58 UTC 
(rev 6952)
@@ -350,6 +350,8 @@
                 sort="list_entry_length"
                 inherit="default-solr-command">
             <query-transformers>
+                <!-- ignore any query less than three characters -->
+                <regexp regexp="^&quot;(.?)(.?)&quot;$" replacement=""/>
                 <!-- The following works against a Solr configured field of 
type string named "list_entry". -->
                 <!-- We use String instead of text as the whole query can be 
treated as a single token. -->
                 <!--  The incoming query must be phrased as well to give the 
chance to escape the whitespace. -->

_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits

Reply via email to