-
Notifications
You must be signed in to change notification settings - Fork 25.5k
Support kNN filter on nested metadata #113949
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
elasticsearchmachine
merged 25 commits into
elastic:main
from
mayya-sharipova:knn_query_nested_filter
Jul 30, 2025
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
d29e647
Support kNN filter on nested metadata
mayya-sharipova 6e6abae
Update docs/changelog/113949.yaml
mayya-sharipova 426db4d
Spotless
mayya-sharipova d9eb1e9
Address test failure
mayya-sharipova 891b091
Fix test
mayya-sharipova 923b6c0
Fix test failure
mayya-sharipova d9a13a9
Merge remote-tracking branch 'upstream/main' into knn_query_nested_fi…
mayya-sharipova 9aa706f
Merge remote-tracking branch 'upstream/main' into knn_query_nested_fi…
mayya-sharipova 9c56fff
Allow filters on both parent and nested metadata in the same knn query
mayya-sharipova afe3d8f
Merge remote-tracking branch 'upstream/main' into knn_query_nested_fi…
mayya-sharipova 7bc25d3
Add documentation
mayya-sharipova e3b0251
Add pre-check for a query to be both on nested and parent metada field
mayya-sharipova a2f365e
Revert "Add pre-check for a query to be both on nested and parent met…
mayya-sharipova f423619
Add small changes
mayya-sharipova acbfccd
Add test for nested sibling docs
mayya-sharipova 7cc0b09
Merge remote-tracking branch 'upstream/main' into knn_query_nested_fi…
mayya-sharipova 1aa3605
Merge remote-tracking branch 'upstream/main' into knn_query_nested_fi…
mayya-sharipova 5a818bc
Some adjustments
mayya-sharipova 6c3230e
Merge remote-tracking branch 'upstream/main' into knn_query_nested_fi…
mayya-sharipova c0bb4ff
Update docs/changelog/113949.yaml
mayya-sharipova 24e4943
Merge branch 'main' into knn_query_nested_filter
mayya-sharipova 8f9cf54
Merge branch 'main' into knn_query_nested_filter
mayya-sharipova 867b928
Merge branch 'main' into knn_query_nested_filter
mayya-sharipova cdf4e92
Merge branch 'main' into knn_query_nested_filter
mayya-sharipova d6d5f8e
Merge branch 'main' into knn_query_nested_filter
mayya-sharipova File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
pr: 113949 | ||
summary: Support kNN filter on nested metadata | ||
area: Vector Search | ||
type: enhancement | ||
issues: | ||
- 128803 | ||
- 106994 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here with the current implementation we can query nested sibling fields.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was sort of hoping that we could do something similar in the nested query since we look to the parent level. But it gets too complicated given the nested context?