Skip to content

Commit eb87f76

Browse files
pquentinrand0m86
andauthored
[Backport 7.7] Add missing shard_min_doc_count to TermsAggregation (#2633)
Co-authored-by: Quentin Pradet <[email protected]> (cherry picked from commit 2bb4d0c) Co-authored-by: Vitalii Mahas <[email protected]>
1 parent 821ac31 commit eb87f76

File tree

3 files changed

+31
-8
lines changed

3 files changed

+31
-8
lines changed

output/schema/schema.json

Lines changed: 21 additions & 8 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: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,15 @@ export class TermsAggregation extends BucketAggregationBase {
407407
value_type?: string
408408
order?: AggregateOrder
409409
script?: Script
410+
/**
411+
* 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`.
412+
* Terms will only be considered if their local shard frequency within the set is higher than the `shard_min_doc_count`.
413+
*/
414+
shard_min_doc_count?: long
415+
/**
416+
* The number of candidate terms produced by each shard.
417+
* By default, `shard_size` will be automatically estimated based on the number of shards and the `size` parameter.
418+
*/
410419
shard_size?: integer
411420
show_term_doc_count_error?: boolean
412421
size?: integer

0 commit comments

Comments
 (0)