Merge remote-tracking branch 'origin/master'

This commit is contained in:
Noble Paul 2016-11-08 18:41:39 +05:30
commit 915ed6f375
1 changed files with 1 additions and 2 deletions

View File

@ -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 // 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) // documents... we only need to order the top (rows+start)
ShardFieldSortedHitQueue queue; final ShardFieldSortedHitQueue queue = new ShardFieldSortedHitQueue(sortFields, ss.getOffset() + ss.getCount(), rb.req.getSearcher());
queue = new ShardFieldSortedHitQueue(sortFields, ss.getOffset() + ss.getCount(), rb.req.getSearcher());
NamedList<Object> shardInfo = null; NamedList<Object> shardInfo = null;
if(rb.req.getParams().getBool(ShardParams.SHARDS_INFO, false)) { if(rb.req.getParams().getBool(ShardParams.SHARDS_INFO, false)) {