@@ -47,6 +47,11 @@ PUT range_index/_doc/1
4747--------------------------------------------------
4848//CONSOLE
4949
50+ <1> `date_range` types accept the same field parameters defined by the <<date, `date`>> type.
51+ <2> Example indexing a meeting with 10 to 20 attendees.
52+ <3> Date ranges accept the same format as described in <<ranges-on-dates, date range queries>>.
53+ <4> Example date range using date time stamp. This also accepts <<date-math, date math>> formatting, or "now" for system time.
54+
5055The following is an example of a <<query-dsl-term-query, term query>> on the `integer_range` field named "expected_attendees".
5156
5257[source,js]
@@ -102,7 +107,6 @@ The result produced by the above query.
102107--------------------------------------------------
103108// TESTRESPONSE[s/"took": 13/"took" : $body.took/]
104109
105-
106110The following is an example of a `date_range` query over the `date_range` field named "time_frame".
107111
108112[source,js]
@@ -111,10 +115,10 @@ GET range_index/_search
111115{
112116 "query" : {
113117 "range" : {
114- "time_frame" : { <5 >
118+ "time_frame" : { <1 >
115119 "gte" : "2015-10-31",
116120 "lte" : "2015-11-01",
117- "relation" : "within" <6 >
121+ "relation" : "within" <2 >
118122 }
119123 }
120124 }
@@ -123,12 +127,8 @@ GET range_index/_search
123127// CONSOLE
124128// TEST[setup:range_index]
125129
126- <1> `date_range` types accept the same field parameters defined by the <<date, `date`>> type.
127- <2> Example indexing a meeting with 10 to 20 attendees.
128- <3> Date ranges accept the same format as described in <<ranges-on-dates, date range queries>>.
129- <4> Example date range using date time stamp. This also accepts <<date-math, date math>> formatting, or "now" for system time.
130- <5> Range queries work the same as described in <<query-dsl-range-query, range query>>.
131- <6> Range queries over range <<mapping-types, fields>> support a `relation` parameter which can be one of `WITHIN`, `CONTAINS`,
130+ <1> Range queries work the same as described in <<query-dsl-range-query, range query>>.
131+ <2> Range queries over range <<mapping-types, fields>> support a `relation` parameter which can be one of `WITHIN`, `CONTAINS`,
132132 `INTERSECTS` (default).
133133
134134This query produces a similar result:
0 commit comments