This PR proposes a small change a co-worker found. We can avoid creating a leaf collectors for a leaf that matches no terms, which we can tell if the scorer for it is null. One test was relying on the exact sequence of collectors, enforcing that every one was created with no gaps in their sequence, so this PR also cleans up that test, making the same assertions without the need for that assumption.
-Mike Sokolov On Mon, Feb 4, 2019 at 8:12 AM GitBox <g...@apache.org> wrote: > msokolov opened a new pull request #562: Don't create a LeafCollector when > the Scorer for the leaf is null > URL: https://github.com/apache/lucene-solr/pull/562 > > > > > ---------------------------------------------------------------- > This is an automated message from the Apache Git Service. > To respond to the message, please log on 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: dev-unsubscr...@lucene.apache.org > For additional commands, e-mail: dev-h...@lucene.apache.org > >