Browse Source

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

It isn't very clear how boosting query works.
Add explanation of positive/negative query.
Jun Ohtani 7 years ago
parent
commit
0cdfc4cd0a
1 changed files with 6 additions and 0 deletions
  1. 6 0
      docs/reference/query-dsl/boosting-query.asciidoc

+ 6 - 0
docs/reference/query-dsl/boosting-query.asciidoc

@@ -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