Skip to content

Commit f4b104e

Browse files
authored
[DOCS] Fix chunking in query docs (elastic#61053) (elastic#61055)
Changes: * Moves "Notes" sections for the joining queries and percolate query pages to the parent page * Adds related redirects for the moved "Notes" pages * Assigns explicit anchor IDs to other "Notes" headings. This was required for the redirects to work.
1 parent a1eb327 commit f4b104e

File tree

10 files changed

+29
-9
lines changed

10 files changed

+29
-9
lines changed

docs/reference/aggregations/bucket/datehistogram-aggregation.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ POST /sales/_search?size=0
263263
--------------------------------------------------
264264
// NOTCONSOLE
265265

266+
[[datehistogram-aggregation-notes]]
266267
===== Notes
267268

268269
In all cases, when the specified end time does not exist, the actual end time is

docs/reference/ingest/processors/circle.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ The response from the above index request:
141141
--------------------------------------------------
142142
// TESTRESPONSE[s/"_seq_no": \d+/"_seq_no" : $body._seq_no/ s/"_primary_term": 1/"_primary_term" : $body._primary_term/]
143143

144-
144+
[[circle-processor-notes]]
145145
==== Notes on Accuracy
146146

147147
Accuracy of the polygon that represents the circle is defined as `error_distance`. The smaller this

docs/reference/query-dsl/fuzzy-query.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ adjacent characters (ab → ba). Defaults to `true`.
9999
(Optional, string) Method used to rewrite the query. For valid values and more
100100
information, see the <<query-dsl-multi-term-rewrite, `rewrite` parameter>>.
101101

102+
[[fuzzy-query-notes]]
102103
==== Notes
103104
Fuzzy queries will not be executed if <<query-dsl-allow-expensive-queries, `search.allow_expensive_queries`>>
104105
is set to false.

docs/reference/query-dsl/geo-shape-query.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ supported:
273273
* `MULTIPOINT`
274274
* `MULTILINE`
275275

276+
[[geo-shape-query-notes]]
276277
==== Notes
277278

278279
* Geo-shape queries on geo-shapes implemented with

docs/reference/query-dsl/joining-queries.asciidoc

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ Also see the <<query-dsl-terms-lookup,terms-lookup mechanism>> in the `terms`
2121
query, which allows you to build a `terms` query from values contained in
2222
another document.
2323

24+
[discrete]
25+
[[joining-queries-notes]]
26+
==== Notes
27+
28+
[discrete]
29+
===== Allow expensive queries
30+
Joining queries will not be executed if <<query-dsl-allow-expensive-queries, `search.allow_expensive_queries`>>
31+
is set to false.
32+
2433
include::nested-query.asciidoc[]
2534

2635
include::has-child-query.asciidoc[]
@@ -29,7 +38,4 @@ include::has-parent-query.asciidoc[]
2938

3039
include::parent-id-query.asciidoc[]
3140

32-
=== Notes
33-
==== Allow expensive queries
34-
Joining queries will not be executed if <<query-dsl-allow-expensive-queries, `search.allow_expensive_queries`>>
35-
is set to false.
41+

docs/reference/query-dsl/percolate-query.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -694,8 +694,8 @@ allows for fields to be stored in a denser, more efficient way.
694694
- Percolate queries do not scale in the same way as other queries, so percolation performance may benefit from using
695695
a different index configuration, like the number of primary shards.
696696

697-
[discrete]
698-
=== Notes
699-
==== Allow expensive queries
697+
[[percolate-query-notes]]
698+
==== Notes
699+
===== Allow expensive queries
700700
Percolate queries will not be executed if <<query-dsl-allow-expensive-queries, `search.allow_expensive_queries`>>
701701
is set to false.

docs/reference/query-dsl/query-string-query.asciidoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,6 @@ The example above creates a boolean query:
548548

549549
that matches documents with at least two of the three per-term blended queries.
550550

551-
==== Notes
552551
===== Allow expensive queries
553552
Query string query can be internally be transformed to a <<query-dsl-prefix-query, `prefix query`>> which means
554553
that if the prefix queries are disabled as explained <<prefix-query-allow-expensive-queries, here>> the query will not be

docs/reference/query-dsl/regexp-query.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ regular expressions.
8787
(Optional, string) Method used to rewrite the query. For valid values and more
8888
information, see the <<query-dsl-multi-term-rewrite, `rewrite` parameter>>.
8989

90+
[[regexp-query-notes]]
9091
==== Notes
9192
===== Allow expensive queries
9293
Regexp queries will not be executed if <<query-dsl-allow-expensive-queries, `search.allow_expensive_queries`>>

docs/reference/query-dsl/wildcard-query.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ increases the relevance score.
6969
(Optional, string) Method used to rewrite the query. For valid values and more information, see the
7070
<<query-dsl-multi-term-rewrite, `rewrite` parameter>>.
7171

72+
[[wildcard-query-notes]]
7273
==== Notes
7374
===== Allow expensive queries
7475
Wildcard queries will not be executed if <<query-dsl-allow-expensive-queries, `search.allow_expensive_queries`>>

docs/reference/redirects.asciidoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,3 +1095,13 @@ See <<stored-fields>>.
10951095
==== Track total hits
10961096

10971097
See <<track-total-hits>>.
1098+
1099+
[role="exclude",id="_notes_3"]
1100+
=== Joining queries notes
1101+
1102+
See <<joining-queries-notes>>.
1103+
1104+
[role="exclude",id="_notes_4"]
1105+
=== Percolate query notes
1106+
1107+
See <<percolate-query-notes>>.

0 commit comments

Comments
 (0)