Skip to content

Commit bc10334

Browse files
author
Christoph Büscher
authored
[Docs] Move callouts in range.asciidoc (#28264)
Currently the callouts for this section are below all the examples, making it harder to relate them to the snippets. Instead they should be moved closer to the examples.
1 parent d10dec3 commit bc10334

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/reference/mapping/types/range.asciidoc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
5055
The 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-
106110
The 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

134134
This query produces a similar result:

0 commit comments

Comments
 (0)