OpenSearch/docs/reference/query-dsl/constant-score-query.asciidoc
Isabel Drost-Fromm 4c02e97bcd Add back doc execution to query dsl.
Relates to #18211

This reverts commit 20aafb1196192d4f9f7faea8ce9a36b278e501a1.
2016-05-24 12:43:41 +02:00

23 lines
541 B
Plaintext

[[query-dsl-constant-score-query]]
=== Constant Score Query
A query that wraps another query and simply returns a
constant score equal to the query boost for every document in the
filter. Maps to Lucene `ConstantScoreQuery`.
[source,js]
--------------------------------------------------
GET /_search
{
"query": {
"constant_score" : {
"filter" : {
"term" : { "user" : "kimchy"}
},
"boost" : 1.2
}
}
}
--------------------------------------------------
// CONSOLE