You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by cp...@apache.org on 2016/11/08 12:18:41 UTC

lucene-solr:master: QueryComponent.mergeIds tweak to local 'queue' variable.

Repository: lucene-solr
Updated Branches:
  refs/heads/master 6abfad023 -> f203c7c81


QueryComponent.mergeIds tweak to local 'queue' variable.


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/f203c7c8
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/f203c7c8
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/f203c7c8

Branch: refs/heads/master
Commit: f203c7c816d01e27f1ec07f925ae70915bc65053
Parents: 6abfad0
Author: Christine Poerschke <cp...@apache.org>
Authored: Tue Nov 8 11:41:49 2016 +0000
Committer: Christine Poerschke <cp...@apache.org>
Committed: Tue Nov 8 11:41:49 2016 +0000

----------------------------------------------------------------------
 .../java/org/apache/solr/handler/component/QueryComponent.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/f203c7c8/solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java
----------------------------------------------------------------------
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.java
index 09fc74b..c0484ec 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)) {