Browse Source

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.

Luca Cavanna 12 years ago
parent
commit
b0fee6c01b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      docs/reference/query-dsl/filters/nested-filter.asciidoc

+ 2 - 2
docs/reference/query-dsl/filters/nested-filter.asciidoc

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