Fielddata: EmptyOrdinals#getMaxOrd() should return 0 instead of 1, since ordinals are zero based since #5871.

This commit is contained in:
Martijn van Groningen 2014-06-05 16:55:21 +02:00
parent 5e408f3d40
commit e15d2e2514
1 changed files with 1 additions and 3 deletions

View File

@ -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);