mirror of https://github.com/apache/lucene.git
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:
parent
718d1a8001
commit
12b06a0b72
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue