Skip to content

Commit b7f569e

Browse files
committed
[DOCS] Add anchors for Asciidoctor migration (#41648)
1 parent de760d1 commit b7f569e

36 files changed

+68
-4
lines changed

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

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

145145
==== Limitations
146146

147+
[[div-sampler-breadth-first-nested-agg]]
147148
===== Cannot be nested under `breadth_first` aggregations
148149
Being a quality-based filter the sampler aggregation needs access to the relevance score produced for each document.
149150
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.
@@ -152,6 +153,7 @@ In this situation an error will be thrown.
152153
===== Limited de-dup logic.
153154
The de-duplication logic in the diversify settings applies only at a shard level so will not apply across shards.
154155

156+
[[spec-syntax-geo-date-fields]]
155157
===== No specialized syntax for geo/date fields
156158
Currently the syntax for defining the diversifying values is defined by a choice of `field` or
157159
`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
@@ -126,6 +126,7 @@ request. The response for this example would be:
126126
...
127127
--------------------------------------------------
128128

129+
[[other-bucket]]
129130
==== `Other` Bucket
130131

131132
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
@@ -70,6 +70,7 @@ The default value is 100.
7070

7171
==== Limitations
7272

73+
[[sampler-breadth-first-nested-agg]]
7374
===== Cannot be nested under `breadth_first` aggregations
7475
Being a quality-based filter the sampler aggregation needs access to the relevance score produced for each document.
7576
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)