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
This commit is contained in:
Joel Bernstein 2013-11-12 00:50:39 +00:00
parent 718d1a8001
commit 12b06a0b72
1 changed files with 2 additions and 0 deletions

View File

@ -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;