eliaporciani opened a new pull request, #904:
URL: https://github.com/apache/solr/pull/904

   Implementation of pre-filtering in KnnQParser.
   
   https://issues.apache.org/jira/browse/SOLR-16246
   
   # Description
   
   With this change, it is possible to use filter queries alongside knnQParser:
   KnnSearch searches for the topK documents that have passed the filter.
   
   # Solution
   
   With this change, it is possible to use filter queries for pre-filtering 
documents in knnQParser:
   KnnSearch searches for the topK documents that have passed the filter.
   The implementation leverages the new features added with 
https://issues.apache.org/jira/browse/LUCENE-10382.
   Before this change, the results of the filter query were intersected with 
the result of the topK vector retrieval.
   
   # Tests
   
   Changed tests in KnnQParserTest class in charge of checking the correct 
behavior of filter queries. 
   
   # Checklist
   
   Please review the following and check all that apply:
   
   - [v] I have reviewed the guidelines for [How to 
Contribute](https://wiki.apache.org/solr/HowToContribute) and my code conforms 
to the standards described there to the best of my ability.
   - [v] I have created a Jira issue and added the issue ID to my pull request 
title.
   - [v] I have given Solr maintainers 
[access](https://help.github.com/en/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork)
 to contribute to my PR branch. (optional but recommended)
   - [v] I have developed this patch against the `main` branch.
   - [v] I have run `./gradlew check`.
   - [v] I have added tests for my changes.
   - [v] I have added documentation for the [Reference 
Guide](https://github.com/apache/solr/tree/main/solr/solr-ref-guide)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to