Skip to content

Commit 65580b0

Browse files
Auto-generated code for main (#2025)
1 parent 29960d8 commit 65580b0

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
@@ -917,7 +917,7 @@ If `false`, the response does not include the total number of hits matching the
917917
** *`indices_boost` (Optional, Record<string, number>[])*: Boosts the _score of documents from specified indices.
918918
** *`docvalue_fields` (Optional, { field, format, include_unmapped }[])*: Array of wildcard (`*`) patterns.
919919
The request returns doc values for field names matching these patterns in the `hits.fields` property of the response.
920-
** *`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.
920+
** *`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.
921921
** *`rank` (Optional, { rrf })*: Defines the Reciprocal Rank Fusion (RRF) to use.
922922
** *`min_score` (Optional, number)*: Minimum `_score` for matching documents.
923923
Documents with a lower `_score` are not included in the search results.
@@ -1429,7 +1429,7 @@ Defaults to 10,000 hits.
14291429
** *`indices_boost` (Optional, Record<string, number>[])*: Boosts the _score of documents from specified indices.
14301430
** *`docvalue_fields` (Optional, { field, format, include_unmapped }[])*: Array of wildcard (*) patterns. The request returns doc values for field
14311431
names matching these patterns in the hits.fields property of the response.
1432-
** *`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.
1432+
** *`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.
14331433
** *`min_score` (Optional, number)*: Minimum _score for matching documents. Documents with a lower _score are
14341434
not included in the search results.
14351435
** *`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, rule_query, 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
@@ -2271,6 +2271,7 @@ export interface KnnQuery {
22712271
num_candidates: long
22722272
boost?: float
22732273
filter?: QueryDslQueryContainer | QueryDslQueryContainer[]
2274+
similarity?: float
22742275
}
22752276

22762277
export interface LatLonGeoLocation {

src/api/typesWithBodyKey.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2344,6 +2344,7 @@ export interface KnnQuery {
23442344
num_candidates: long
23452345
boost?: float
23462346
filter?: QueryDslQueryContainer | QueryDslQueryContainer[]
2347+
similarity?: float
23472348
}
23482349

23492350
export interface LatLonGeoLocation {

0 commit comments

Comments
 (0)