You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Despite having used the Elasticsearch match_phrase query for years, we actually don't know much about the details of its scoring.
In particular, does slop have any impact on the score? For example, consider the query main street and two documents with values main street and street main.
With slop: 1, both documents will match the query. But do they get the same score? If they do, then setting high slop values is totally fine. Documents with "better" matches will naturally be scored higher. If they don't, then match_phrase queries are a little harder to work with out of the box.
The text was updated successfully, but these errors were encountered:
Despite having used the Elasticsearch match_phrase query for years, we actually don't know much about the details of its scoring.
In particular, does
slop
have any impact on the score? For example, consider the querymain street
and two documents with valuesmain street
andstreet main
.With
slop: 1
, both documents will match the query. But do they get the same score? If they do, then setting high slop values is totally fine. Documents with "better" matches will naturally be scored higher. If they don't, thenmatch_phrase
queries are a little harder to work with out of the box.The text was updated successfully, but these errors were encountered: