[Erp5-report] r38257 kazuhiko - /erp5/trunk/products/ZSQLCatalog/SearchKey/

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Sep 10 11:03:53 CEST 2010


Author: kazuhiko
Date: Fri Sep 10 11:03:51 2010
New Revision: 38257

URL: http://svn.erp5.org?rev=38257&view=rev
Log:
implicit OR search is too brutal.

Modified:
    erp5/trunk/products/ZSQLCatalog/SearchKey/SphinxSEFullTextKey.py

Modified: erp5/trunk/products/ZSQLCatalog/SearchKey/SphinxSEFullTextKey.py
URL: http://svn.erp5.org/erp5/trunk/products/ZSQLCatalog/SearchKey/SphinxSEFullTextKey.py?rev=38257&r1=38256&r2=38257&view=diff
==============================================================================
--- erp5/trunk/products/ZSQLCatalog/SearchKey/SphinxSEFullTextKey.py [utf8] (original)
+++ erp5/trunk/products/ZSQLCatalog/SearchKey/SphinxSEFullTextKey.py [utf8] Fri Sep 10 11:03:51 2010
@@ -50,10 +50,10 @@ class SphinxSEFullTextKey(SearchKey):
       do multiple fulltext lookups when one would suit the purpose.
 
       Example:
-      'aaa bbb' : '"aaa" | "bbb"'
-      '"aaa bbb"' : '"aaa" | "bbb"' XXX no way to differentiate with the
+      'aaa bbb' : '"aaa" "bbb"'
+      '"aaa bbb"' : '"aaa" "bbb"' XXX no way to differentiate with the
                                         above for now
-      '"aaa bbb" ccc' : '"aaa bbb" | "ccc"'
+      '"aaa bbb" ccc' : '"aaa bbb" "ccc"'
     """
     column = self.getColumn()
     query_list = []
@@ -63,7 +63,7 @@ class SphinxSEFullTextKey(SearchKey):
         value_list = value_list[0].split()
       append(SimpleQuery(search_key=self,
                          comparison_operator=comparison_operator,
-                         group=group, **{column:'"%s"' % '" | "'.join(value_list)}))
+                         group=group, **{column:'"%s"' % '" "'.join(value_list)}))
     return query_list
 
 verifyClass(ISearchKey, SphinxSEFullTextKey)




More information about the Erp5-report mailing list