diff --git a/pandora/document/fulltext.py b/pandora/document/fulltext.py index 040658ce..b383e8df 100644 --- a/pandora/document/fulltext.py +++ b/pandora/document/fulltext.py @@ -63,9 +63,7 @@ class FulltextMixin: @classmethod def find_fulltext_ids(cls, query): - if not query: - return [] - elif query[0] == '"' and query[-1] == '"': + if query[0] == '"' and query[-1] == '"': query = { "match_phrase": { "text": query.lower()[1:-1]