[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:
parent
3883e9bf4c
commit
0cdfc4cd0a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue