瀏覽代碼

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 年之前
父節點
當前提交
961f69eaae
共有 1 個文件被更改,包括 1 次插入1 次删除
  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"
 }
 --------------------------------------------------