Skip to content

Commit aebb715

Browse files
Add support for multiple knn queries (#2078) (#2079)
Co-authored-by: Sylvain Wallez <[email protected]>
1 parent ad0989c commit aebb715

File tree

4 files changed

+44
-14
lines changed

4 files changed

+44
-14
lines changed

output/schema/schema.json

Lines changed: 40 additions & 10 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: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_global/msearch/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class MultisearchBody {
101101
* Defines the approximate kNN search to run.
102102
* @since 8.4.0
103103
*/
104-
knn?: KnnQuery
104+
knn?: KnnQuery | KnnQuery[]
105105
/**
106106
* Starting document offset. By default, you cannot page through more than 10,000
107107
* hits using the from and size parameters. To page through more hits, use the

specification/async_search/submit/AsyncSearchSubmitRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export interface Request extends RequestBase {
161161
* Defines the approximate kNN search to run.
162162
* @since 8.4.0
163163
*/
164-
knn?: KnnQuery
164+
knn?: KnnQuery | KnnQuery[]
165165
/**
166166
* Minimum _score for matching documents. Documents with a lower _score are
167167
* not included in the search results.

0 commit comments

Comments
 (0)