Browse Source

Fix exists query doc

I managed to push the last one without testing it because I'd changed
the way I run tests locally and hadn't picked it up. Ooops. This one
works better.
Nik Everett 8 years ago
parent
commit
9abb125417
1 changed files with 2 additions and 2 deletions
  1. 2 2
      docs/reference/query-dsl/exists-query.asciidoc

+ 2 - 2
docs/reference/query-dsl/exists-query.asciidoc

@@ -54,11 +54,11 @@ instance, if the `user` field were mapped as follows:
 --------------------------------------------------
 PUT /example
 {
-  "mapping": {
+  "mappings": {
     "doc": {
       "properties": {
         "user": {
-          "type": "text",
+          "type": "keyword",
           "null_value": "_null_"
         }
       }