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
As for now, ES ignores field level boost factors specified in mapping during computation of documents' score for common terms query.
This places certain restrictions on the client of ES.
E.g., the client has to specify different boost factors manually if he want to have distinct scores for the same term retrieved from two fields.
This quickly becomes unmanageable if the client has no direct control over search fields or if this number grows fast.
The absence of the described functionally looks especially weird comparing to the way how regular terms query works (it does honor field level boosts, see below).
As for now, ES ignores field level boost factors specified in mapping during computation of documents' score for common terms query.
This places certain restrictions on the client of ES.
E.g., the client has to specify different boost factors manually if he want to have distinct scores for the same term retrieved from two fields.
This quickly becomes unmanageable if the client has no direct control over search fields or if this number grows fast.
The absence of the described functionally looks especially weird comparing to the way how regular terms query works (it does honor field level boosts, see below).
Sample setup:
1. Create index and mapping.
curl -XPUT 'http://localhost:9200/messages/'
2. Create sample docs
3. Wait for ES to be synced
curl -XPOST 'http://localhost:9200/messages/_refresh'
4. Search in default catch-all field using term query
5. Search in default catch-all field using common terms query
The first query (step 4) works as expected -- document with id equal to 2 has higher score.
The result of second query (step 5) is opposite.
The text was updated successfully, but these errors were encountered: