Fielddata: EmptyOrdinals#getMaxOrd() should return 0 instead of 1, since ordinals are zero based since #5871.
This commit is contained in:
parent
5e408f3d40
commit
e15d2e2514
|
@ -19,7 +19,6 @@
|
|||
|
||||
package org.elasticsearch.index.fielddata.ordinals;
|
||||
|
||||
import org.apache.lucene.util.LongsRef;
|
||||
import org.elasticsearch.ElasticsearchIllegalStateException;
|
||||
|
||||
/**
|
||||
|
@ -39,7 +38,7 @@ public enum EmptyOrdinals implements Ordinals {
|
|||
|
||||
@Override
|
||||
public long getMaxOrd() {
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -48,7 +47,6 @@ public enum EmptyOrdinals implements Ordinals {
|
|||
}
|
||||
|
||||
public static class Docs extends Ordinals.AbstractDocs {
|
||||
public static final LongsRef EMPTY_LONGS_REF = new LongsRef();
|
||||
|
||||
public Docs(EmptyOrdinals parent) {
|
||||
super(parent);
|
||||
|
|
Loading…
Reference in New Issue