Skip to content

Commit a8ddffe

Browse files
committed
Reverted changes in specification/_global/knn_search/_types/Knn.ts, as this references an old deprecated API
1 parent 2d6f8d8 commit a8ddffe

File tree

3 files changed

+6
-82
lines changed

3 files changed

+6
-82
lines changed

output/schema/schema.json

Lines changed: 2 additions & 65 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 1 addition & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_global/knn_search/_types/Knn.ts

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,16 @@
1818
*/
1919

2020
import { Field } from '@_types/common'
21-
import { long, float, double } from '@_types/Numeric'
22-
import { QueryVector, QueryVectorBuilder } from '@_types/Knn'
23-
import { QueryContainer } from '@_types/query_dsl/abstractions'
21+
import { long, float } from '@_types/Numeric'
22+
import { QueryVector } from '@_types/Knn'
2423

2524
export interface Query {
2625
/** The name of the vector field to search against */
2726
field: Field
2827
/** The query vector */
29-
query_vector?: QueryVector
30-
/** The query vector builder. You must provide a query_vector_builder or query_vector, but not both. */
31-
query_vector_builder?: QueryVectorBuilder
28+
query_vector: QueryVector
3229
/** The final number of nearest neighbors to return as top hits */
3330
k: long
3431
/** The number of nearest neighbor candidates to consider per shard */
3532
num_candidates: long
36-
/** Boost value to apply to kNN scores */
37-
boost?: float
38-
/** Filters for the kNN search query */
39-
filter?: QueryContainer | QueryContainer[]
40-
/** The minimum similarity for a vector to be considered a match */
41-
similarity?: double
4233
}

0 commit comments

Comments
 (0)