Compare commits
No commits in common. "a2ff9480cf14728d28f808ee54743f7b8b177fc6" and "c64b13537b395d917c69aef99d7632c165d8cf90" have entirely different histories.
a2ff9480cf
...
c64b13537b
1 changed files with 1 additions and 3 deletions
|
|
@ -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]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue