Skip to content

Commit

Permalink
Add missing shard_min_doc_count to TermsAggregation (#2175)
Browse files Browse the repository at this point in the history
Co-authored-by: Quentin Pradet <[email protected]>
  • Loading branch information
rand0m86 and pquentin authored Jun 20, 2024
1 parent 4e3e174 commit 2bb4d0c
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 14 deletions.
40 changes: 26 additions & 14 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions specification/_types/aggregations/bucket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,11 @@ export class TermsAggregation extends BucketAggregationBase {
*/
order?: AggregateOrder
script?: Script
/**
* 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`.
* Terms will only be considered if their local shard frequency within the set is higher than the `shard_min_doc_count`.
*/
shard_min_doc_count?: long
/**
* The number of candidate terms produced by each shard.
* By default, `shard_size` will be automatically estimated based on the number of shards and the `size` parameter.
Expand Down

0 comments on commit 2bb4d0c

Please sign in to comment.