Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Boost doesn't seem to work for prefix queries #3754
This looks to be caused by ConstantScoreAutoRewrite squashing prefix queries that don't match into empty, unweighted boolean clauses in the query rewrite phase. Those empty boolean clauses have zero weight.
Switching to "rewrite": "constant_score_filter" fixes it for me.
Fine by me. I'll use my work around until then. Any idea when Elasticsearch will upgrade to get it? Also, is this worth adding to the documentation?
Now that I know what causes it I don't think it effects all prefix queries, just the ones for terms that are in a different combination of fields on different indexes. Because I deal in "rare" terms I see this more than most folks.