Skip to content

Commit 54fd493

Browse files
committed
adding min score and availability annotation for retriever
1 parent 94f07b4 commit 54fd493

File tree

7 files changed

+44
-42
lines changed

7 files changed

+44
-42
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema-serverless.json

Lines changed: 16 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 16 additions & 15 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 & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_global/search/SearchRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ export interface Request extends RequestBase {
428428
rescore?: Rescore | Rescore[]
429429
/**
430430
* A retriever is a specification to describe top documents returned from a search. A retriever replaces other elements of the search API that also return top documents such as query and knn.
431-
* @availability stack since=8.14.0
431+
* @availability stack since=8.14.0 stability=stable
432432
* @availability serverless
433433
*/
434434
retriever?: RetrieverContainer

specification/_types/Retriever.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ export class RetrieverContainer {
4040
export class RetrieverBase {
4141
/** Query to filter the documents that can match. */
4242
filter?: QueryContainer | QueryContainer[]
43+
/** Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. */
44+
min_score?: float
4345
}
4446

4547
export class StandardRetriever extends RetrieverBase {
@@ -51,8 +53,6 @@ export class StandardRetriever extends RetrieverBase {
5153
terminate_after?: integer
5254
/** A sort object that that specifies the order of matching documents. */
5355
sort?: Sort
54-
/** Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. */
55-
min_score?: float
5656
/** Collapses the top documents by a specified key into a single top document per key. */
5757
collapse?: FieldCollapse
5858
}

0 commit comments

Comments
 (0)