Compare commits

..

No commits in common. "a2ff9480cf14728d28f808ee54743f7b8b177fc6" and "c64b13537b395d917c69aef99d7632c165d8cf90" have entirely different histories.

View file

@ -63,9 +63,7 @@ class FulltextMixin:
@classmethod @classmethod
def find_fulltext_ids(cls, query): def find_fulltext_ids(cls, query):
if not query: if query[0] == '"' and query[-1] == '"':
return []
elif query[0] == '"' and query[-1] == '"':
query = { query = {
"match_phrase": { "match_phrase": {
"text": query.lower()[1:-1] "text": query.lower()[1:-1]