mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 01:19:02 +00:00
[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:
parent
a8433a3164
commit
156b3cae15
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user