Changed nested filter example to use an inner bool filter instead of a bool query, to demonstrate the usage of a filter rather than a query.
This commit is contained in:
parent
427bc13272
commit
b0fee6c01b
|
@ -15,11 +15,11 @@ the `_name` value). For example:
|
|||
"filter" : {
|
||||
"nested" : {
|
||||
"path" : "obj1",
|
||||
"query" : {
|
||||
"filter" : {
|
||||
"bool" : {
|
||||
"must" : [
|
||||
{
|
||||
"match" : {"obj1.name" : "blue"}
|
||||
"term" : {"obj1.name" : "blue"}
|
||||
},
|
||||
{
|
||||
"range" : {"obj1.count" : {"gt" : 5}}
|
||||
|
|
Loading…
Reference in New Issue