[ https://issues.apache.org/jira/browse/LUCENE-10382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17479016#comment-17479016 ]
Joel Bernstein edited comment on LUCENE-10382 at 1/19/22, 10:52 PM: -------------------------------------------------------------------- I thought about passing in Bits but I don't think it will work because searchLeaf is at the segment level so we'd need segment level Bits. We could pass in a Query and collect the segment level bits. Would be easy to implement as well. KnnVectorQuery(String field, float[] target, int k, Query query) was (Author: joel.bernstein): I thought about passing in Bits but I don't think it will work because searchLeaf is at the segment level so we'd need segment level Bits. We could pass in a Query and collect the bits segment level bits. Would be easy to implement as well. KnnVectorQuery(String field, float[] target, int k, Query query) > Allow KnnVectorQuery to operate over a subset of liveDocs > --------------------------------------------------------- > > Key: LUCENE-10382 > URL: https://issues.apache.org/jira/browse/LUCENE-10382 > Project: Lucene - Core > Issue Type: Improvement > Affects Versions: 9.0 > Reporter: Joel Bernstein > Priority: Major > > Currently the KnnVectorQuery selects the top K vectors from all live docs. > This ticket will change the interface to make it possible for the top K > vectors to be selected from a subset of the live docs. -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org