Skip to content

Commit

Permalink
Improved (?) boosts.
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav committed Jul 11, 2024
1 parent 37c5b3c commit e1264f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,10 @@ async def lookup(string: str,
"query": query,
# qf = query fields, i.e. how should we boost these fields if they contain the same fields as the input.
# https://solr.apache.org/guide/solr/latest/query-guide/dismax-query-parser.html#qf-query-fields-parameter
"qf": "preferred_name_exactish^100 names_exactish^50 preferred_name^10 names",
"qf": "preferred_name_exactish^40 names_exactish^20 preferred_name^4 names",
# pf = phrase fields, i.e. how should we boost these fields if they contain the entire search phrase.
# https://solr.apache.org/guide/solr/latest/query-guide/dismax-query-parser.html#pf-phrase-fields-parameter
"pf": "preferred_name_exactish^150 names_exactish^70 preferred_name^20 names^10",
"pf": "preferred_name_exactish^50 names_exactish^25 preferred_name^8 names^2",
# Boosts
"bq": [],
"boost": [
Expand Down

0 comments on commit e1264f3

Please sign in to comment.