mirror of
https://github.com/Alexander-D-Karpov/akarpov
synced 2024-11-21 19:46:38 +03:00
bug fixes
This commit is contained in:
parent
1fb6219b7c
commit
f5545ed7d4
|
@ -55,8 +55,8 @@ def search_song(query):
|
|||
),
|
||||
boost=2,
|
||||
),
|
||||
ES_Q("wildcard", name__raw=f"*{query.lower()}*", boost=0.5),
|
||||
ES_Q("wildcard", meta__raw=f"*{query.lower()}*", boost=0.5),
|
||||
ES_Q("wildcard", field={"name.raw": f"*{query.lower()}*"}, boost=0.5),
|
||||
ES_Q("wildcard", field={"meta.raw": f"*{query.lower()}*"}, boost=0.5),
|
||||
],
|
||||
minimum_should_match=1,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user