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:
Luca Cavanna 2013-10-04 14:08:37 +02:00
parent 427bc13272
commit b0fee6c01b
1 changed files with 2 additions and 2 deletions

View File

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