From e443bfc492ed3a07a8d22ee98fb52264ef0e39d5 Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Wed, 18 Nov 2015 15:13:17 +0100 Subject: [PATCH] docs: fix callouts --- docs/reference/search/field-stats.asciidoc | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/docs/reference/search/field-stats.asciidoc b/docs/reference/search/field-stats.asciidoc index a99e8a00b1e..c22a53026db 100644 --- a/docs/reference/search/field-stats.asciidoc +++ b/docs/reference/search/field-stats.asciidoc @@ -270,18 +270,20 @@ If missing, the format configured in the field's mapping is used. [source,js] -------------------------------------------------- curl -XPOST "http://localhost:9200/_field_stats?level=indices" -d '{ - "fields" : ["answer_count"] <1> - "index_constraints" : { <2> - "creation_date" : { <3> - "min_value" : { <4> + "fields" : ["answer_count"] + "index_constraints" : { + "creation_date" : { + "min_value" : { "gte" : "2014-01-01", - "format" : "date_optional_time" + "format" : "date_optional_time" <1> }, "max_value" : { "lt" : "2015-01-01", - "format" : "date_optional_time" + "format" : "date_optional_time" <1> } } } }' --------------------------------------------------- \ No newline at end of file +-------------------------------------------------- + +<1> Custom date format \ No newline at end of file