Commit 319f0098 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fixup! full text: add BooleanFullTextKey, that does 'AND' search by default.

parent 04c2a9bf
...@@ -119,7 +119,7 @@ class MatchComparisonOperator(MonovaluedComparisonOperator): ...@@ -119,7 +119,7 @@ class MatchComparisonOperator(MonovaluedComparisonOperator):
if self.mode == ' IN BOOLEAN MODE' and \ if self.mode == ' IN BOOLEAN MODE' and \
not fulltext_boolean_detector.search(value_list): not fulltext_boolean_detector.search(value_list):
value_list = ' '.join(['+%s' % x for x in value_list.split()]) value_list = ' '.join(['+%s' % x for x in value_list.split()])
return self._renderValue(value_list) return self._renderValue(value_list)
def asSQLExpression(self, column, value_list, only_group_columns): def asSQLExpression(self, column, value_list, only_group_columns):
""" """
......
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