forked from 0x2620/pandora
don't fail with empty fulltext query
This commit is contained in:
parent
c64b13537b
commit
53ed483f9c
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ class FulltextMixin:
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def find_fulltext_ids(cls, query):
|
def find_fulltext_ids(cls, query):
|
||||||
if query[0] == '"' and query[-1] == '"':
|
if query and query[0] == '"' and query[-1] == '"':
|
||||||
query = {
|
query = {
|
||||||
"match_phrase": {
|
"match_phrase": {
|
||||||
"text": query.lower()[1:-1]
|
"text": query.lower()[1:-1]
|
||||||
|
|
Loading…
Reference in a new issue