Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions output/openapi/elasticsearch-openapi.json

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

16 changes: 16 additions & 0 deletions output/openapi/elasticsearch-serverless-openapi.json

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

80 changes: 63 additions & 17 deletions output/schema/schema.json

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

6 changes: 6 additions & 0 deletions output/typescript/types.ts

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

26 changes: 26 additions & 0 deletions specification/_types/aggregations/bucket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,22 @@ export class ScriptedHeuristic {
script: Script
}

export class PValueHeuristic {
/*
* Set to false to indicate that the background set does
* not contain the counts of the foreground set as they are filtered out.
* @server_default true
*/
background_is_superset?: boolean
/**
* Should the results be normalized when above the given value.
* Allows for consistent significance results at various scales.
* Note: `0` is a special value which means no normalization
* @server_default 0
*/
normalize_above?: long
}

/**
* @ext_doc_id search-aggregations-bucket-significanttext-aggregation
*/
Expand Down Expand Up @@ -867,6 +883,16 @@ export class SignificantTermsAggregation extends BucketAggregationBase {
* Customized score, implemented via a script.
*/
script_heuristic?: ScriptedHeuristic
/**
* Significant terms heuristic that calculates the p-value between the term existing in foreground and background sets.
*
* The p-value is the probability of obtaining test results at least as extreme as
* the results actually observed, under the assumption that the null hypothesis is
* correct. The p-value is calculated assuming that the foreground set and the
* background set are independent https://en.wikipedia.org/wiki/Bernoulli_trial, with the null
* hypothesis that the probabilities are the same.
*/
p_value?: PValueHeuristic
/**
* 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`.
Expand Down