Commit 20d6a56f authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

full text: add a comment to explain current limitation in _renderValueAsSearchText();

parent 8d21bf08
...@@ -48,6 +48,10 @@ class FullTextKey(DefaultKey): ...@@ -48,6 +48,10 @@ class FullTextKey(DefaultKey):
return False return False
def _renderValueAsSearchText(self, value, operator): def _renderValueAsSearchText(self, value, operator):
# XXX:
# return value for 'a b' here is '(a b), but keyword search with
# '(a b)' means fulltext search with (a OR b), that is different
# from fulltext='a b' that means fulltext search with (a AND b).
return '(%s)' % (value, ) return '(%s)' % (value, )
def _processSearchValue(self, search_value, logical_operator, def _processSearchValue(self, search_value, logical_operator,
......
...@@ -39,6 +39,10 @@ class MroongaFullTextKey(DefaultKey): ...@@ -39,6 +39,10 @@ class MroongaFullTextKey(DefaultKey):
return False return False
def _renderValueAsSearchText(self, value, operator): def _renderValueAsSearchText(self, value, operator):
# XXX:
# return value for 'a b' here is '(a b), but keyword search with
# '(a b)' means fulltext search with (a OR b), that is different
# from fulltext='a b' that means fulltext search with (a AND b).
return '(%s)' % (value, ) return '(%s)' % (value, )
def _processSearchValue(self, search_value, logical_operator, def _processSearchValue(self, search_value, logical_operator,
......
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