Skip to content

Commit f85de4a

Browse files
Auto-generated code for 8.9 (#2023)
1 parent 10d4d18 commit f85de4a

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

docs/reference.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ Defaults to 10,000 hits.
824824
** *`indices_boost` (Optional, Record<string, number>[])*: Boosts the _score of documents from specified indices.
825825
** *`docvalue_fields` (Optional, { field, format, include_unmapped }[])*: Array of wildcard (*) patterns. The request returns doc values for field
826826
names matching these patterns in the hits.fields property of the response.
827-
** *`knn` (Optional, { field, query_vector, query_vector_builder, k, num_candidates, boost, filter } | { field, query_vector, query_vector_builder, k, num_candidates, boost, filter }[])*: Defines the approximate kNN search to run.
827+
** *`knn` (Optional, { field, query_vector, query_vector_builder, k, num_candidates, boost, filter, similarity } | { field, query_vector, query_vector_builder, k, num_candidates, boost, filter, similarity }[])*: Defines the approximate kNN search to run.
828828
** *`rank` (Optional, { rrf })*: Defines the Reciprocal Rank Fusion (RRF) to use
829829
** *`min_score` (Optional, number)*: Minimum _score for matching documents. Documents with a lower _score are
830830
not included in the search results.
@@ -1260,7 +1260,7 @@ Defaults to 10,000 hits.
12601260
** *`indices_boost` (Optional, Record<string, number>[])*: Boosts the _score of documents from specified indices.
12611261
** *`docvalue_fields` (Optional, { field, format, include_unmapped }[])*: Array of wildcard (*) patterns. The request returns doc values for field
12621262
names matching these patterns in the hits.fields property of the response.
1263-
** *`knn` (Optional, { field, query_vector, query_vector_builder, k, num_candidates, boost, filter } | { field, query_vector, query_vector_builder, k, num_candidates, boost, filter }[])*: Defines the approximate kNN search to run.
1263+
** *`knn` (Optional, { field, query_vector, query_vector_builder, k, num_candidates, boost, filter, similarity } | { field, query_vector, query_vector_builder, k, num_candidates, boost, filter, similarity }[])*: Defines the approximate kNN search to run.
12641264
** *`min_score` (Optional, number)*: Minimum _score for matching documents. Documents with a lower _score are
12651265
not included in the search results.
12661266
** *`post_filter` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type })*

src/api/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2239,6 +2239,7 @@ export interface KnnQuery {
22392239
num_candidates: long
22402240
boost?: float
22412241
filter?: QueryDslQueryContainer | QueryDslQueryContainer[]
2242+
similarity?: float
22422243
}
22432244

22442245
export interface LatLonGeoLocation {

src/api/typesWithBodyKey.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2312,6 +2312,7 @@ export interface KnnQuery {
23122312
num_candidates: long
23132313
boost?: float
23142314
filter?: QueryDslQueryContainer | QueryDslQueryContainer[]
2315+
similarity?: float
23152316
}
23162317

23172318
export interface LatLonGeoLocation {

0 commit comments

Comments
 (0)