mirror of https://github.com/apache/lucene.git
remove sop; improve lying to be more believable
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1433149 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
35c19b6298
commit
a6e84b0073
|
@ -250,6 +250,7 @@ public abstract class SimpleDVConsumer implements Closeable {
|
|||
if (reader.hasDeletions()) {
|
||||
state.liveTerms = new FixedBitSet(state.values.getValueCount());
|
||||
Bits liveDocs = reader.getLiveDocs();
|
||||
assert liveDocs != null;
|
||||
for(int docID=0;docID<maxDoc;docID++) {
|
||||
if (liveDocs.get(docID)) {
|
||||
state.liveTerms.set(state.values.getOrd(docID));
|
||||
|
|
|
@ -180,6 +180,14 @@ public class MultiSimpleDocValues {
|
|||
public Bits getLiveDocs() {
|
||||
return null; // lie
|
||||
}
|
||||
@Override
|
||||
public int numDocs() {
|
||||
return maxDoc(); // lie
|
||||
}
|
||||
@Override
|
||||
public boolean hasDeletions() {
|
||||
return false; // lie
|
||||
}
|
||||
});
|
||||
}
|
||||
writer.addIndexes(newLeaves.toArray(new AtomicReader[0]));
|
||||
|
|
|
@ -556,7 +556,6 @@ class FieldCacheImpl implements FieldCache {
|
|||
throws IOException {
|
||||
|
||||
final NumericDocValues valuesIn = reader.getNumericDocValues(key.field);
|
||||
System.out.println("ints values=" + valuesIn);
|
||||
if (valuesIn != null) {
|
||||
return new Ints() {
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue