Skip to content

[Backport 8.7] Add support for multiple knn queries #2079

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 40 additions & 10 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion specification/_global/msearch/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class MultisearchBody {
* Defines the approximate kNN search to run.
* @since 8.4.0
*/
knn?: KnnQuery
knn?: KnnQuery | KnnQuery[]
/**
* Starting document offset. By default, you cannot page through more than 10,000
* hits using the from and size parameters. To page through more hits, use the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export interface Request extends RequestBase {
* Defines the approximate kNN search to run.
* @since 8.4.0
*/
knn?: KnnQuery
knn?: KnnQuery | KnnQuery[]
/**
* Minimum _score for matching documents. Documents with a lower _score are
* not included in the search results.
Expand Down