Skip to content

Commit 168c0b1

Browse files
Auto-generated code for 8.8 (#2024)
1 parent 08bb896 commit 168c0b1

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

docs/reference.asciidoc

+2-2
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.
@@ -1254,7 +1254,7 @@ Defaults to 10,000 hits.
12541254
** *`indices_boost` (Optional, Record<string, number>[])*: Boosts the _score of documents from specified indices.
12551255
** *`docvalue_fields` (Optional, { field, format, include_unmapped }[])*: Array of wildcard (*) patterns. The request returns doc values for field
12561256
names matching these patterns in the hits.fields property of the response.
1257-
** *`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.
1257+
** *`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.
12581258
** *`min_score` (Optional, number)*: Minimum _score for matching documents. Documents with a lower _score are
12591259
not included in the search results.
12601260
** *`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

+1
Original file line numberDiff line numberDiff line change
@@ -2235,6 +2235,7 @@ export interface KnnQuery {
22352235
num_candidates: long
22362236
boost?: float
22372237
filter?: QueryDslQueryContainer | QueryDslQueryContainer[]
2238+
similarity?: float
22382239
}
22392240

22402241
export interface LatLonGeoLocation {

src/api/typesWithBodyKey.ts

+1
Original file line numberDiff line numberDiff line change
@@ -2308,6 +2308,7 @@ export interface KnnQuery {
23082308
num_candidates: long
23092309
boost?: float
23102310
filter?: QueryDslQueryContainer | QueryDslQueryContainer[]
2311+
similarity?: float
23112312
}
23122313

23132314
export interface LatLonGeoLocation {

0 commit comments

Comments
 (0)