Upgrade to Lucene 6.5.0. (elastic/elasticsearch#4950)
This is a sibling of elastic/elasticsearchelastic/elasticsearch#23087.
Original commit: elastic/x-pack-elasticsearch@ab99fbc874f7d040ccae3b017139deb10f8e8147
@@ -479,6 +479,15 @@ public final class FieldSubsetReader extends FilterLeafReader {
}
}
+ @Override
+ public long estimatePointCount(String fieldName, IntersectVisitor visitor) {
+ if (hasField(fieldName)) {
+ return in.estimatePointCount(fieldName, visitor);
+ } else {
+ return 0L; // behave as field does not exist
+ }
+ }
+
@Override
public byte[] getMinPackedValue(String fieldName) throws IOException {
if (hasField(fieldName)) {
