Commit 57f4f42c authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

full_text: other comparison operators than match / match_boolean are handled by DefaultKey.

parent 55b7522c
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
# #
############################################################################## ##############################################################################
from DefaultKey import DefaultKey
from FullTextKey import FullTextKey from FullTextKey import FullTextKey
from Products.ZSQLCatalog.Query.SimpleQuery import SimpleQuery from Products.ZSQLCatalog.Query.SimpleQuery import SimpleQuery
from Products.ZSQLCatalog.interfaces.search_key import ISearchKey from Products.ZSQLCatalog.interfaces.search_key import ISearchKey
...@@ -89,10 +90,10 @@ class MroongaFullTextKey(FullTextKey): ...@@ -89,10 +90,10 @@ class MroongaFullTextKey(FullTextKey):
append(SimpleQuery(search_key=self, append(SimpleQuery(search_key=self,
comparison_operator='match_boolean', comparison_operator='match_boolean',
group=group, **{column: fulltext_query})) group=group, **{column: fulltext_query}))
for comparison_operator, value_list in operator_value_dict.iteritems(): # other comparison operators are handled by DefaultKey.
append(SimpleQuery(search_key=self, if operator_value_dict:
comparison_operator=comparison_operator, query_list += DefaultKey._buildQuery(
group=group, **{column: ' '.join(value_list)})) self, operator_value_dict, logical_operator, parsed, group)
return query_list return query_list
verifyClass(ISearchKey, MroongaFullTextKey) verifyClass(ISearchKey, MroongaFullTextKey)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment