@@ -917,7 +917,7 @@ If `false`, the response does not include the total number of hits matching the
917
917
** *`indices_boost` (Optional, Record<string, number>[])*: Boosts the _score of documents from specified indices.
918
918
** *`docvalue_fields` (Optional, { field, format, include_unmapped }[])*: Array of wildcard (`*`) patterns.
919
919
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.
921
921
** *`rank` (Optional, { rrf })*: Defines the Reciprocal Rank Fusion (RRF) to use.
922
922
** *`min_score` (Optional, number)*: Minimum `_score` for matching documents.
923
923
Documents with a lower `_score` are not included in the search results.
@@ -1429,7 +1429,7 @@ Defaults to 10,000 hits.
1429
1429
** *`indices_boost` (Optional, Record<string, number>[])*: Boosts the _score of documents from specified indices.
1430
1430
** *`docvalue_fields` (Optional, { field, format, include_unmapped }[])*: Array of wildcard (*) patterns. The request returns doc values for field
1431
1431
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.
1433
1433
** *`min_score` (Optional, number)*: Minimum _score for matching documents. Documents with a lower _score are
1434
1434
not included in the search results.
1435
1435
** *`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 })*
0 commit comments