Skip to content

Commit d79057c

Browse files
committed
[DOCS] Add anchors for Asciidoctor migration (#41648)
1 parent 6cf333d commit d79057c

36 files changed

+67
-3
lines changed

docs/reference/aggregations/bucket/diversified-sampler-aggregation.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ Please note that Elasticsearch will ignore the choice of execution hint if it is
188188

189189
==== Limitations
190190

191+
[[div-sampler-breadth-first-nested-agg]]
191192
===== Cannot be nested under `breadth_first` aggregations
192193
Being a quality-based filter the diversified_sampler aggregation needs access to the relevance score produced for each document.
193194
It therefore cannot be nested under a `terms` aggregation which has the `collect_mode` switched from the default `depth_first` mode to `breadth_first` as this discards scores.
@@ -196,6 +197,7 @@ In this situation an error will be thrown.
196197
===== Limited de-dup logic.
197198
The de-duplication logic applies only at a shard level so will not apply across shards.
198199

200+
[[spec-syntax-geo-date-fields]]
199201
===== No specialized syntax for geo/date fields
200202
Currently the syntax for defining the diversifying values is defined by a choice of `field` or
201203
`script` - there is no added syntactical sugar for expressing geo or date units such as "7d" (7

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ request. The response for this example would be:
118118
// TESTRESPONSE[s/"_shards": \.\.\./"_shards": $body._shards/]
119119
// TESTRESPONSE[s/"hits": \.\.\./"hits": $body.hits/]
120120

121+
[[other-bucket]]
121122
==== `Other` Bucket
122123

123124
The `other_bucket` parameter can be set to add a bucket to the response which will contain all documents that do

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ The default value is 100.
156156

157157
==== Limitations
158158

159+
[[sampler-breadth-first-nested-agg]]
159160
===== Cannot be nested under `breadth_first` aggregations
160161
Being a quality-based filter the sampler aggregation needs access to the relevance score produced for each document.
161162
It therefore cannot be nested under a `terms` aggregation which has the `collect_mode` switched from the default `depth_first` mode to `breadth_first` as this discards scores.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ Available parameters in the script are
370370
`_subset_size`:: Number of documents in the subset.
371371
`_superset_size`:: Number of documents in the superset.
372372

373+
[[sig-terms-shard-size]]
373374
===== Size & Shard Size
374375

375376
The `size` parameter can be set to define how many term buckets should be returned out of the overall terms list. By

docs/reference/aggregations/pipeline/avg-bucket-aggregation.asciidoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ experimental[]
66
A sibling pipeline aggregation which calculates the (mean) average value of a specified metric in a sibling aggregation.
77
The specified metric must be numeric and the sibling aggregation must be a multi-bucket aggregation.
88

9+
[[avg-bucket-agg-syntax]]
910
==== Syntax
1011

1112
An `avg_bucket` aggregation looks like this in isolation:
@@ -19,7 +20,9 @@ An `avg_bucket` aggregation looks like this in isolation:
1920
}
2021
--------------------------------------------------
2122

23+
[[avg-bucket-params]]
2224
.`avg_bucket` Parameters
25+
[options="header"]
2326
|===
2427
|Parameter Name |Description |Required |Default Value
2528
|`buckets_path` |The path to the buckets we wish to find the average for (see <<buckets-path-syntax>> for more

docs/reference/aggregations/pipeline/bucket-script-aggregation.asciidoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ experimental[]
66
A parent pipeline aggregation which executes a script which can perform per bucket computations on specified metrics
77
in the parent multi-bucket aggregation. The specified metric must be numeric and the script must return a numeric value.
88

9+
[[bucket-script-agg-syntax]]
910
==== Syntax
1011

1112
A `bucket_script` aggregation looks like this in isolation:
@@ -25,8 +26,9 @@ A `bucket_script` aggregation looks like this in isolation:
2526
<1> Here, `my_var1` is the name of the variable for this buckets path to use in the script, `the_sum` is the path to
2627
the metrics to use for that variable.
2728

28-
29+
[[bucket-script-params]]
2930
.`bucket_script` Parameters
31+
[options="header"]
3032
|===
3133
|Parameter Name |Description |Required |Default Value
3234
|`script` |The script to run for this aggregation. The script can be inline, file or indexed. (see <<modules-scripting>>

docs/reference/aggregations/pipeline/bucket-selector-aggregation.asciidoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ A `bucket_selector` aggregation looks like this in isolation:
3030
<1> Here, `my_var1` is the name of the variable for this buckets path to use in the script, `the_sum` is the path to
3131
the metrics to use for that variable.
3232

33-
33+
[[bucket-selector-params]]
3434
.`bucket_selector` Parameters
35+
[options="header"]
3536
|===
3637
|Parameter Name |Description |Required |Default Value
3738
|`script` |The script to run for this aggregation. The script can be inline, file or indexed. (see <<modules-scripting>>

docs/reference/aggregations/pipeline/cumulative-sum-aggregation.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ A `cumulative_sum` aggregation looks like this in isolation:
2020
}
2121
--------------------------------------------------
2222

23+
[[cumulative-sum-params]]
2324
.`cumulative_sum` Parameters
25+
[options="header"]
2426
|===
2527
|Parameter Name |Description |Required |Default Value
2628
|`buckets_path` |The path to the buckets we wish to find the cumulative sum for (see <<buckets-path-syntax>> for more

docs/reference/aggregations/pipeline/derivative-aggregation.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ A `derivative` aggregation looks like this in isolation:
1818
}
1919
--------------------------------------------------
2020

21+
[[derivative-params]]
2122
.`derivative` Parameters
23+
[options="header"]
2224
|===
2325
|Parameter Name |Description |Required |Default Value
2426
|`buckets_path` |The path to the buckets we wish to find the derivative for (see <<buckets-path-syntax>> for more

docs/reference/aggregations/pipeline/extended-stats-bucket-aggregation.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ A `extended_stats_bucket` aggregation looks like this in isolation:
2121
}
2222
--------------------------------------------------
2323

24+
[[extended-stats-bucket-params]]
2425
.`extended_stats_bucket` Parameters
26+
[options="header"]
2527
|===
2628
|Parameter Name |Description |Required |Default Value
2729
|`buckets_path` |The path to the buckets we wish to calculate stats for (see <<buckets-path-syntax>> for more

0 commit comments

Comments
 (0)