SOLR-6886: Removed redundant size check and added missing calls to DelegatingCollection.finish inside Grouping code

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1674430 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2015-04-18 03:32:36 +00:00
parent dbf063d3d1
commit f258d2f9d4
2 changed files with 6 additions and 4 deletions

View File

@ -157,6 +157,9 @@ Other Changes
- When using hl.maxMultiValuedToMatch with hl.preserveMulti, only count matched snippets.
(David Smiley)
* SOLR-6886: Removed redundant size check and added missing calls to
DelegatingCollection.finish inside Grouping code. (Christine Poerschke via shalin)
================== 5.1.0 ==================
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release

View File

@ -405,10 +405,9 @@ public class Grouping {
secondPhaseCollectors = pf.postFilter;
}
searchWithTimeLimiter(luceneFilter, secondPhaseCollectors);
if(secondPhaseCollectors instanceof DelegatingCollector) {
((DelegatingCollector) secondPhaseCollectors).finish();
}
if (secondPhaseCollectors instanceof DelegatingCollector) {
((DelegatingCollector) secondPhaseCollectors).finish();
}
}
}