This message was deleted.
# community-help
s
This message was deleted.
k
Can you post the first matching document for this query
pen
?
j
with productCode
without
k
When you place
productCode
ahead in the query_by list you are influencing its weight in ranking. Try placing it last.
j
it still shouldnt take a partial ahead of exact though should it and it shouldnt alter the number of results?
i.e. results shouldnt go up with less fields, less fields to search over should mean less results?
k
When a given prefix can match multiple words and when we cannot exhaustively go through all words, we pick the words that are most likely to produce results. This candidate list can change based on the fields used. For e.g. with productCode, the engine is picking a word like
pen2567
which won't exist in other fields. You can set
max_candidates: 100
to make the engine look for more candidates.
j
ive tried adding exhaustive_search=true which is giving better results, 2107 for pen and correctly now matching exact first
and removing productCode, the number of results goes does to 1985 which is expected
k
Exhaustive search also considers all typos and will try to drop tokens from the query also. With Max candidates it will not try to drop tokens or consider typos exhaustively.
j
ok, thanks a lot, let me play around a bit more and see what gives the best results
👍 1
max_candidates:100 had little effect, had to set to 200 to not get productCode being picked up first
k
You could also try disabling prefix on product code field