Skip to content

Commit ec7b68f

Browse files
rand0m86pquentin
authored andcommitted
Add missing shard_min_doc_count to TermsAggregation (#2175)
Co-authored-by: Quentin Pradet <[email protected]> (cherry picked from commit 2bb4d0c)
1 parent fe0928e commit ec7b68f

File tree

3 files changed

+32
-14
lines changed

3 files changed

+32
-14
lines changed

output/schema/schema.json

Lines changed: 26 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_types/aggregations/bucket.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,11 @@ export class TermsAggregation extends BucketAggregationBase {
954954
*/
955955
order?: AggregateOrder
956956
script?: Script
957+
/**
958+
* Regulates the certainty a shard has if the term should actually be added to the candidate list or not with respect to the `min_doc_count`.
959+
* Terms will only be considered if their local shard frequency within the set is higher than the `shard_min_doc_count`.
960+
*/
961+
shard_min_doc_count?: long
957962
/**
958963
* The number of candidate terms produced by each shard.
959964
* By default, `shard_size` will be automatically estimated based on the number of shards and the `size` parameter.

0 commit comments

Comments
 (0)