Skip to content

Commit

Permalink
Changed exact match boost implementation to use a match_phrase query …
Browse files Browse the repository at this point in the history
…in should #4960

I have added support for "match_pharse"
and also removed variable quotes_stripped it's not needed now.
  • Loading branch information
dryruffian authored Sep 23, 2024
1 parent 409a45c commit 3cade36
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion api/api/controllers/search_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ def build_search_query(

search_queries["must"].append(Q("simple_query_string", **base_query_kwargs))
# Boost exact matches on the title

exact_match_boost = Q(
"match_phrase",
title = {
Expand Down

0 comments on commit 3cade36

Please sign in to comment.