Browse Source

Use snake casing for document field (#45432)

This commit updates the search example to use snake casing for the document field. This is consistent with other examples
Russ Cam 6 years ago
parent
commit
961f69eaae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/reference/search.asciidoc

+ 1 - 1
docs/reference/search.asciidoc

@@ -19,7 +19,7 @@ the user name:
 POST /twitter/_doc?routing=kimchy
 {
     "user" : "kimchy",
-    "postDate" : "2009-11-15T14:12:12",
+    "post_date" : "2009-11-15T14:12:12",
     "message" : "trying out Elasticsearch"
 }
 --------------------------------------------------