diff --git a/docs/reference/search/request/sort.asciidoc b/docs/reference/search/request/sort.asciidoc index 36252d3caa2..2f2e8882032 100644 --- a/docs/reference/search/request/sort.asciidoc +++ b/docs/reference/search/request/sort.asciidoc @@ -16,12 +16,10 @@ PUT /my_index "properties": { "post_date": { "type": "date" }, "user": { - "type": "string", - "fielddata": "true" + "type": "keyword" }, "name": { - "type": "string", - "fielddata": "true" + "type": "keyword" }, "age": { "type": "integer" } } @@ -94,7 +92,7 @@ the average price per document. [source,js] -------------------------------------------------- -PUT /my_index/my_type/1 +PUT /my_index/my_type/1?refresh { "product": "chocolate", "price": [20, 4]