Skip to content

Commit 3b09f9d

Browse files
github-actions[bot]JoshMockpstrsr
authored
[Backport 8.10] Added the similarity parameter to the KnnQuery type (#2300)
Co-authored-by: Josh Mock <joshua.mock@elastic.co> Co-authored-by: Peter Straßer <peter.str@hotmail.de>
1 parent 693ba14 commit 3b09f9d

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

output/schema/schema.json

+15-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_types/Knn.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
import { Field } from '@_types/common'
21-
import { long, double, float } from '@_types/Numeric'
21+
import { long, float } from '@_types/Numeric'
2222
import { QueryContainer } from './query_dsl/abstractions'
2323

2424
export type QueryVector = float[]
@@ -38,6 +38,8 @@ export interface KnnQuery {
3838
boost?: float
3939
/** Filters for the kNN search query */
4040
filter?: QueryContainer | QueryContainer[]
41+
/** The minimum similarity for a vector to be considered a match */
42+
similarity?: float
4143
}
4244

4345
/** @variants container */

0 commit comments

Comments
 (0)