gerlowskija opened a new pull request #1151: SOLR-13890: Add "top-level" DVTQ 
implementation
URL: https://github.com/apache/lucene-solr/pull/1151
 
 
   # Description
   
   The "docValuesTermsFilter" method for TermsQParserPlugin uses per-segment 
docvalue structures to find matches.  This works well when the number of query 
terms is small, but as it gets over a few hundred, this quickly becomes less 
efficient than using a "top-level" or global docvalues structure.
   
   # Solution
   
   This PR introduces a query that uses the top-level structure and takes 
advantage of the Two Phase Iterator (TPI) interface to handle queries with 
large numbers of terms much more efficiently than any of the existing methods.
   
   # Tests
   
   This PR adds `TestTermsQParserPlugin` with some tests to cover the new code 
added here as well as the rest of the terms qparser (which was largely 
untested).  I also wrote a JUnit performance driver to exhibit perf gains, but 
that no longer appears in this PR.  See patches on the JIRA issue for that.
   
   # Checklist
   
   Please review the following and check all that apply:
   
   - [x] 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.
   - [x] I have created a Jira issue and added the issue ID to my pull request 
title.
   - [x] 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)
   - [x] I have developed this patch against the `master` branch.
   - [x] I have run `ant precommit` and the appropriate test suite.
   - [x] I have added tests for my changes.
   - [x] I have added documentation for the [Ref 
Guide](https://github.com/apache/lucene-solr/tree/master/solr/solr-ref-guide) 
(for Solr changes only).
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to