Commit 8418c9c4 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

full_text: support ignore_empty_string=False case.

parent 57f4f42c
...@@ -57,6 +57,10 @@ class MroongaFullTextKey(FullTextKey): ...@@ -57,6 +57,10 @@ class MroongaFullTextKey(FullTextKey):
append = new_value_list.append append = new_value_list.append
for value in operator_value_dict.pop('match', []): for value in operator_value_dict.pop('match', []):
if isinstance(value, basestring): if isinstance(value, basestring):
# special case for empty string.
if value == '':
operator_value_dict.setdefault('=', []).append(value)
continue
for token in self.fulltext_boolean_splitter.split(value): for token in self.fulltext_boolean_splitter.split(value):
token = token.strip() token = token.strip()
if not token: if not token:
......
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