diff --git a/product/ZSQLCatalog/SearchKey/SphinxSEFullTextKey.py b/product/ZSQLCatalog/SearchKey/SphinxSEFullTextKey.py index ff493c0e64cee83fe3f5e43f7f65ae8e0c78e2df..b15e448d503895bf34b554878ea7d5cff8a00620 100644 --- a/product/ZSQLCatalog/SearchKey/SphinxSEFullTextKey.py +++ b/product/ZSQLCatalog/SearchKey/SphinxSEFullTextKey.py @@ -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)