Apache Lucene open-source search software
LUCENE_6917: missed a few deprecations
Michael McCandless8d971680ea7c
diff --git a/lucene/core/src/java/org/apache/lucene/document/FieldType.java b/lucene/core/src/java/org/apache/lucene/document/FieldType.javaindex f6921e78864..a891f5f6e8e 100644--- a/lucene/core/src/java/org/apache/lucene/document/FieldType.java+++ b/lucene/core/src/java/org/apache/lucene/document/FieldType.java@@ -18,6 +18,7 @@ package org.apache.lucene.document;*/import org.apache.lucene.analysis.Analyzer; // javadocs+import org.apache.lucene.index.DimensionalValues; // javadocsimport org.apache.lucene.index.DocValuesType;import org.apache.lucene.index.IndexOptions;import org.apache.lucene.index.IndexableFieldType;@@ -30,7 +31,10 @@ public class FieldType implements IndexableFieldType {/** Data type of the numeric value* @since 3.2+ *+ * @deprecated Please switch to {@link DimensionalValues} instead*/+ @Deprecatedpublic enum LegacyNumericType {/** 32-bit integer numeric type */INT,@@ -299,7 +303,10 @@ public class FieldType implements IndexableFieldType {* @throws IllegalStateException if this FieldType is frozen against* future modifications.* @see #numericType()+ *+ * @deprecated Please switch to {@link DimensionalValues} instead*/+ @Deprecatedpublic void setNumericType(LegacyNumericType type) {checkIfFrozen();numericType = type;@@ -312,7 +319,10 @@ public class FieldType implements IndexableFieldType {* <p>* The default is <code>null</code> (no numeric type)* @see #setNumericType(org.apache.lucene.document.FieldType.LegacyNumericType)+ *+ * @deprecated Please switch to {@link DimensionalValues} instead*/+ @Deprecatedpublic LegacyNumericType numericType() {return numericType;}@@ -324,7 +334,10 @@ public class FieldType implements IndexableFieldType {* @throws IllegalStateException if this FieldType is frozen against* future modifications.* @see #numericPrecisionStep()+ *+ * @deprecated Please switch to {@link DimensionalValues} instead*/+ @Deprecatedpublic void setNumericPrecisionStep(int precisionStep) {checkIfFrozen();if (precisionStep < 1) {@@ -340,7 +353,10 @@ public class FieldType implements IndexableFieldType {* <p>* The default is {@link org.apache.lucene.util.LegacyNumericUtils#PRECISION_STEP_DEFAULT}* @see #setNumericPrecisionStep(int)+ *+ * @deprecated Please switch to {@link DimensionalValues} instead*/+ @Deprecatedpublic int numericPrecisionStep() {return numericPrecisionStep;}