[Doc] Add clarification to boolean query (#32575)

It isn't very clear how boosting query works.
Add explanation of positive/negative query.
This commit is contained in:
Jun Ohtani 2018-11-16 11:45:32 +09:00 committed by GitHub
parent 3883e9bf4c
commit 0cdfc4cd0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -6,6 +6,12 @@ match a given query. Unlike the "NOT" clause in bool query, this still
selects documents that contain undesirable terms, but reduces their
overall score.
It accepts a `positive` query and a `negative` query.
Only documents that match the `positive` query will be included
in the results list, but documents that also match the `negative` query
will be downgraded by multiplying the original `_score` of the document
with the `negative_boost`.
[source,js]
--------------------------------------------------
GET /_search