Skip to content

Commit 9d812bb

Browse files
Clarify that min_score applies to aggs
Relates to elastic/elasticsearch#125882
1 parent 509f88a commit 9d812bb

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

specification/_global/search/SearchRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ export interface Request extends RequestBase {
448448
rank?: RankContainer
449449
/**
450450
* The minimum `_score` for matching documents.
451-
* Documents with a lower `_score` are not included in the search results.
451+
* Documents with a lower `_score` are not included in search results and results collected by aggregations.
452452
*/
453453
min_score?: double
454454
/**

specification/_global/search/_types/SearchRequestBody.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class SearchRequestBody {
103103
rank?: RankContainer
104104
/**
105105
* The minimum `_score` for matching documents.
106-
* Documents with a lower `_score` are not included in the search results.
106+
* Documents with a lower `_score` are not included in search results or results collected by aggregations.
107107
*/
108108
min_score?: double
109109
/**

specification/async_search/submit/AsyncSearchSubmitRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export interface Request extends RequestBase {
203203
knn?: KnnSearch | KnnSearch[]
204204
/**
205205
* Minimum _score for matching documents. Documents with a lower _score are
206-
* not included in the search results.
206+
* not included in search results and results collected by aggregations.
207207
*/
208208
min_score?: double
209209
post_filter?: QueryContainer

specification/fleet/search/SearchRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export interface Request extends RequestBase {
175175
docvalue_fields?: FieldAndFormat[]
176176
/**
177177
* Minimum _score for matching documents. Documents with a lower _score are
178-
* not included in the search results.
178+
* not included in search results and results collected by aggregations.
179179
*/
180180
min_score?: double
181181
post_filter?: QueryContainer

0 commit comments

Comments
 (0)