File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -51,28 +51,21 @@ export interface KnnSearch {
51
51
inner_hits ?: InnerHits
52
52
}
53
53
54
- export interface KnnQuery {
54
+ export class KnnQuery extends QueryBase {
55
55
/** The name of the vector field to search against */
56
56
field : Field
57
57
/** The query vector */
58
58
query_vector ?: QueryVector
59
59
/** The query vector builder. You must provide a query_vector_builder or query_vector, but not both. */
60
60
query_vector_builder ?: QueryVectorBuilder
61
- /** The final number of nearest neighbors to return as top hits */
62
- k : long
63
61
/** The number of nearest neighbor candidates to consider per shard */
64
- num_candidates : long
62
+ num_candidates ? : long
65
63
/** Boost value to apply to kNN scores */
66
64
boost ?: float
67
65
/** Filters for the kNN search query */
68
66
filter ?: QueryContainer | QueryContainer [ ]
69
67
/** The minimum similarity for a vector to be considered a match */
70
68
similarity ?: float
71
- /**
72
- * If defined, each search hit will contain inner hits.
73
- * @doc_id knn-inner-hits
74
- */
75
- inner_hits ?: InnerHits
76
69
}
77
70
78
71
/** @variants container */
You can’t perform that action at this time.
0 commit comments