diff --git a/buildSrc/src/main/resources/checkstyle_suppressions.xml b/buildSrc/src/main/resources/checkstyle_suppressions.xml
index bd6d321bb17..f3ac73690a9 100644
--- a/buildSrc/src/main/resources/checkstyle_suppressions.xml
+++ b/buildSrc/src/main/resources/checkstyle_suppressions.xml
@@ -596,7 +596,6 @@
-
diff --git a/core/src/main/java/org/elasticsearch/index/mapper/CustomDocValuesField.java b/core/src/main/java/org/elasticsearch/index/mapper/CustomDocValuesField.java
index 60fbfc0698c..f77d480e722 100644
--- a/core/src/main/java/org/elasticsearch/index/mapper/CustomDocValuesField.java
+++ b/core/src/main/java/org/elasticsearch/index/mapper/CustomDocValuesField.java
@@ -28,8 +28,8 @@ import org.apache.lucene.index.IndexableFieldType;
import java.io.Reader;
-// used for binary and geo fields
-abstract class CustomDocValuesField implements IndexableField {
+// used for binary, geo and range fields
+public abstract class CustomDocValuesField implements IndexableField {
public static final FieldType TYPE = new FieldType();
static {
@@ -39,7 +39,7 @@ abstract class CustomDocValuesField implements IndexableField {
private final String name;
- CustomDocValuesField(String name) {
+ protected CustomDocValuesField(String name) {
this.name = name;
}
diff --git a/core/src/main/java/org/elasticsearch/index/mapper/NumberFieldMapper.java b/core/src/main/java/org/elasticsearch/index/mapper/NumberFieldMapper.java
index 6f5190b6376..83ebd6d9fb5 100644
--- a/core/src/main/java/org/elasticsearch/index/mapper/NumberFieldMapper.java
+++ b/core/src/main/java/org/elasticsearch/index/mapper/NumberFieldMapper.java
@@ -62,8 +62,7 @@ import java.util.Objects;
/** A {@link FieldMapper} for numeric types: byte, short, int, long, float and double. */
public class NumberFieldMapper extends FieldMapper {
- // this is private since it has a different default
- static final Setting COERCE_SETTING =
+ public static final Setting COERCE_SETTING =
Setting.boolSetting("index.mapping.coerce", true, Property.IndexScope);
public static class Defaults {
@@ -162,7 +161,7 @@ public class NumberFieldMapper extends FieldMapper {
public enum NumberType {
HALF_FLOAT("half_float", NumericType.HALF_FLOAT) {
@Override
- Float parse(Object value, boolean coerce) {
+ public Float parse(Object value, boolean coerce) {
final float result;
if (value instanceof Number) {
@@ -178,20 +177,20 @@ public class NumberFieldMapper extends FieldMapper {
}
@Override
- Float parse(XContentParser parser, boolean coerce) throws IOException {
+ public Float parse(XContentParser parser, boolean coerce) throws IOException {
float parsed = parser.floatValue(coerce);
validateParsed(parsed);
return parsed;
}
@Override
- Query termQuery(String field, Object value) {
+ public Query termQuery(String field, Object value) {
float v = parse(value, false);
return HalfFloatPoint.newExactQuery(field, v);
}
@Override
- Query termsQuery(String field, List