[Docs] Fix filter context in script-query.asciidoc (#35677)

The docs say script queries are typically used in a filter context but
the example uses a boolean must clause.
This commit is contained in:
Itamar Syn-Hershko 2018-11-19 17:27:43 +02:00 committed by Christoph Büscher
parent a8433a3164
commit 156b3cae15

View File

@ -11,7 +11,7 @@ GET /_search
{
"query": {
"bool" : {
"must" : {
"filter" : {
"script" : {
"script" : {
"source": "doc['num1'].value > 1",
@ -38,7 +38,7 @@ GET /_search
{
"query": {
"bool" : {
"must" : {
"filter" : {
"script" : {
"script" : {
"source" : "doc['num1'].value > params.param1",