bug fixes

This commit is contained in:
Alexander Karpov 2024-04-22 15:35:51 +03:00
parent 1fb6219b7c
commit f5545ed7d4

View File

@ -55,8 +55,8 @@ def search_song(query):
), ),
boost=2, boost=2,
), ),
ES_Q("wildcard", name__raw=f"*{query.lower()}*", boost=0.5), ES_Q("wildcard", field={"name.raw": f"*{query.lower()}*"}, boost=0.5),
ES_Q("wildcard", meta__raw=f"*{query.lower()}*", boost=0.5), ES_Q("wildcard", field={"meta.raw": f"*{query.lower()}*"}, boost=0.5),
], ],
minimum_should_match=1, minimum_should_match=1,
) )