Add 'filter' to 'knn' search section#88217
Conversation
|
Pinging @elastic/clients-team (Team:Clients) |
|
Pinging @elastic/es-search (Team:Search) |
mayya-sharipova
left a comment
There was a problem hiding this comment.
@jtibshirani Thanks, great work! I left a couple of comments.
There was a problem hiding this comment.
Should we add filterQueries to hashCode() as well?
There was a problem hiding this comment.
Yes, thanks for catching that!
There was a problem hiding this comment.
Should we write filterQueries the same way we read them:
out.writeNamedWriteableList(filterQueries);?
There was a problem hiding this comment.
Good point, not sure why I did this manually.
This PR introduces a 'filter' subsection where filters can be provided to the kNN search. Like all other queries, the filters are rewritten on the coordinating nodes as well as data nodes.
|
Thanks @mayya-sharipova for the review. I addressed your comments and also updated the feature branch |
This PR introduces a 'filter' subsection where filters can be provided to the
kNN search:
Like all other queries, the filters are rewritten on the coordinating nodes as
well as data nodes.
Addresses #87625.