mirror of https://github.com/apache/lucene.git
LUCENE-2858: Fix test failure, this was my fault when rewriting this test to work type-safe :(
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1238835 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0ef0cdf79e
commit
ffbeee0834
|
@ -28,6 +28,7 @@ import org.apache.lucene.document.TextField;
|
|||
import org.apache.lucene.index.AtomicReaderContext;
|
||||
import org.apache.lucene.index.CompositeReaderContext;
|
||||
import org.apache.lucene.index.IndexReader;
|
||||
import org.apache.lucene.index.IndexReaderContext;
|
||||
import org.apache.lucene.index.RandomIndexWriter;
|
||||
import org.apache.lucene.index.IndexReaderContext;
|
||||
import org.apache.lucene.index.Term;
|
||||
|
@ -41,7 +42,7 @@ public class TestTopDocsMerge extends LuceneTestCase {
|
|||
private static class ShardSearcher extends IndexSearcher {
|
||||
private final AtomicReaderContext[] ctx;
|
||||
|
||||
public ShardSearcher(AtomicReaderContext ctx, CompositeReaderContext parent) {
|
||||
public ShardSearcher(AtomicReaderContext ctx, IndexReaderContext parent) {
|
||||
super(parent);
|
||||
this.ctx = new AtomicReaderContext[] {ctx};
|
||||
}
|
||||
|
@ -127,7 +128,7 @@ public class TestTopDocsMerge extends LuceneTestCase {
|
|||
if (ctx instanceof AtomicReaderContext) {
|
||||
subSearchers = new ShardSearcher[1];
|
||||
docStarts = new int[1];
|
||||
subSearchers[0] = new ShardSearcher((AtomicReaderContext) ctx, null);
|
||||
subSearchers[0] = new ShardSearcher((AtomicReaderContext) ctx, ctx);
|
||||
docStarts[0] = 0;
|
||||
} else {
|
||||
final CompositeReaderContext compCTX = (CompositeReaderContext) ctx;
|
||||
|
|
Loading…
Reference in New Issue