You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2015/12/15 12:08:09 UTC
svn commit: r1720116 -
/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/document/FieldType.java
Author: mikemccand
Date: Tue Dec 15 11:08:09 2015
New Revision: 1720116
URL: http://svn.apache.org/viewvc?rev=1720116&view=rev
Log:
LUCENE_6917: missed a few deprecations
Modified:
lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/document/FieldType.java
Modified: lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/document/FieldType.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/document/FieldType.java?rev=1720116&r1=1720115&r2=1720116&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/document/FieldType.java (original)
+++ lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/document/FieldType.java Tue Dec 15 11:08:09 2015
@@ -18,6 +18,7 @@ package org.apache.lucene.document;
*/
import org.apache.lucene.analysis.Analyzer; // javadocs
+import org.apache.lucene.index.DimensionalValues; // javadocs
import 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 Indexa
/** Data type of the numeric value
* @since 3.2
+ *
+ * @deprecated Please switch to {@link DimensionalValues} instead
*/
+ @Deprecated
public enum LegacyNumericType {
/** 32-bit integer numeric type */
INT,
@@ -299,7 +303,10 @@ public class FieldType implements Indexa
* @throws IllegalStateException if this FieldType is frozen against
* future modifications.
* @see #numericType()
+ *
+ * @deprecated Please switch to {@link DimensionalValues} instead
*/
+ @Deprecated
public void setNumericType(LegacyNumericType type) {
checkIfFrozen();
numericType = type;
@@ -312,7 +319,10 @@ public class FieldType implements Indexa
* <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
*/
+ @Deprecated
public LegacyNumericType numericType() {
return numericType;
}
@@ -324,7 +334,10 @@ public class FieldType implements Indexa
* @throws IllegalStateException if this FieldType is frozen against
* future modifications.
* @see #numericPrecisionStep()
+ *
+ * @deprecated Please switch to {@link DimensionalValues} instead
*/
+ @Deprecated
public void setNumericPrecisionStep(int precisionStep) {
checkIfFrozen();
if (precisionStep < 1) {
@@ -340,7 +353,10 @@ public class FieldType implements Indexa
* <p>
* The default is {@link org.apache.lucene.util.LegacyNumericUtils#PRECISION_STEP_DEFAULT}
* @see #setNumericPrecisionStep(int)
+ *
+ * @deprecated Please switch to {@link DimensionalValues} instead
*/
+ @Deprecated
public int numericPrecisionStep() {
return numericPrecisionStep;
}