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:21:04 UTC

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

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6x e6dfb76c9 -> c4833d621


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/c4833d62
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/c4833d62
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/c4833d62

Branch: refs/heads/branch_6x
Commit: c4833d6219851117d6ea433f25294e3203c47502
Parents: e6dfb76
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 12:19:15 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/c4833d62/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 7418ebe..83c6017 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
@@ -974,8 +974,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)) {