From 12b06a0b726d25c8c34c27a716e3680a72a719cb Mon Sep 17 00:00:00 2001 From: Joel Bernstein Date: Tue, 12 Nov 2013 00:50:39 +0000 Subject: [PATCH] SOLR-5408 Fix CollapsingQParserPlugin issue with compound sort criteria git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1540904 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/solr/search/CollapsingQParserPlugin.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/solr/core/src/java/org/apache/solr/search/CollapsingQParserPlugin.java b/solr/core/src/java/org/apache/solr/search/CollapsingQParserPlugin.java index 22d2f853ef4..28a96779e4d 100644 --- a/solr/core/src/java/org/apache/solr/search/CollapsingQParserPlugin.java +++ b/solr/core/src/java/org/apache/solr/search/CollapsingQParserPlugin.java @@ -470,6 +470,7 @@ public class CollapsingQParserPlugin extends QParserPlugin { currentDocBase = contexts[currentContext].docBase; nextDocBase = currentContext+1 < contexts.length ? contexts[currentContext+1].docBase : maxDoc; delegate.setNextReader(contexts[currentContext]); + delegate.setScorer(dummy); } int contextDoc = docId-currentDocBase; @@ -582,6 +583,7 @@ public class CollapsingQParserPlugin extends QParserPlugin { currentDocBase = contexts[currentContext].docBase; nextDocBase = currentContext+1 < contexts.length ? contexts[currentContext+1].docBase : maxDoc; delegate.setNextReader(contexts[currentContext]); + delegate.setScorer(dummy); } int contextDoc = docId-currentDocBase;