Apache Lucene open-source search software
QueryComponent.mergeIds tweak to local 'queue' variable.
Christine Poerschkef203c7c816d0
diff --git a/solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java b/solr/core/src/java/org/apache/solr/handler/component/QueryComponent.javaindex 09fc74b8026..c0484eca0dc 100644--- a/solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java+++ b/solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java@@ -973,8 +973,7 @@ public class QueryComponent extends SearchComponent// Merge the docs via a priority queue so we don't have to sort *all* of the// documents... we only need to order the top (rows+start)- ShardFieldSortedHitQueue queue;- queue = new ShardFieldSortedHitQueue(sortFields, ss.getOffset() + ss.getCount(), rb.req.getSearcher());+ final ShardFieldSortedHitQueue queue = new ShardFieldSortedHitQueue(sortFields, ss.getOffset() + ss.getCount(), rb.req.getSearcher());NamedList<Object> shardInfo = null;if(rb.req.getParams().getBool(ShardParams.SHARDS_INFO, false)) {