Skip to content

[Backport 9.0] Clarify that min_score applies to aggs #4191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 3, 2025
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
8 changes: 4 additions & 4 deletions output/openapi/elasticsearch-openapi.json

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

6 changes: 3 additions & 3 deletions output/openapi/elasticsearch-serverless-openapi.json

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

6 changes: 3 additions & 3 deletions output/schema/schema-serverless.json

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

8 changes: 4 additions & 4 deletions output/schema/schema.json

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

2 changes: 1 addition & 1 deletion specification/_global/search/SearchRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ export interface Request extends RequestBase {
rank?: RankContainer
/**
* The minimum `_score` for matching documents.
* Documents with a lower `_score` are not included in the search results.
* Documents with a lower `_score` are not included in search results and results collected by aggregations.
*/
min_score?: double
/**
Expand Down
2 changes: 1 addition & 1 deletion specification/_global/search/_types/SearchRequestBody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class SearchRequestBody {
rank?: RankContainer
/**
* The minimum `_score` for matching documents.
* Documents with a lower `_score` are not included in the search results.
* Documents with a lower `_score` are not included in search results or results collected by aggregations.
*/
min_score?: double
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export interface Request extends RequestBase {
knn?: KnnSearch | KnnSearch[]
/**
* Minimum _score for matching documents. Documents with a lower _score are
* not included in the search results.
* not included in search results and results collected by aggregations.
*/
min_score?: double
post_filter?: QueryContainer
Expand Down
2 changes: 1 addition & 1 deletion specification/fleet/search/SearchRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export interface Request extends RequestBase {
docvalue_fields?: FieldAndFormat[]
/**
* Minimum _score for matching documents. Documents with a lower _score are
* not included in the search results.
* not included in search results and results collected by aggregations.
*/
min_score?: double
post_filter?: QueryContainer
Expand Down