Browse Source

Docs: `exists` query does not need to be wrapped inside `constant_score`

In the example we show an `exists` query inside a constant score query. While this is possible, it can mislead users to think it is necessary so we should remove it.
Christoph Büscher 10 years ago
parent
commit
71e734647b
1 changed files with 1 additions and 5 deletions
  1. 1 5
      docs/reference/query-dsl/exists-query.asciidoc

+ 1 - 5
docs/reference/query-dsl/exists-query.asciidoc

@@ -6,11 +6,7 @@ Returns documents that have at least one non-`null` value in the original field:
 [source,js]
 --------------------------------------------------
 {
-    "constant_score" : {
-        "filter" : {
-            "exists" : { "field" : "user" }
-        }
-    }
+    "exists" : { "field" : "user" }
 }
 --------------------------------------------------