Package org.apache.lucene.index
Class IndexWriter.MaxFieldLength
- java.lang.Object
-
- org.apache.lucene.index.IndexWriter.MaxFieldLength
-
- Enclosing class:
- IndexWriter
@Deprecated public static final class IndexWriter.MaxFieldLength extends Object
Deprecated.useLimitTokenCountAnalyzerinstead.Specifies maximum field length (in number of tokens/terms) inIndexWriterconstructors.IndexWriter.setMaxFieldLength(int)overrides the value set by the constructor.
-
-
Field Summary
Fields Modifier and Type Field Description static IndexWriter.MaxFieldLengthLIMITEDDeprecated.Sets the maximum field length toIndexWriter.DEFAULT_MAX_FIELD_LENGTHstatic IndexWriter.MaxFieldLengthUNLIMITEDDeprecated.Sets the maximum field length toInteger.MAX_VALUE.
-
Constructor Summary
Constructors Constructor Description MaxFieldLength(int limit)Deprecated.Public constructor to allow users to specify the maximum field size limit.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intgetLimit()Deprecated.StringtoString()Deprecated.
-
-
-
Field Detail
-
UNLIMITED
public static final IndexWriter.MaxFieldLength UNLIMITED
Deprecated.Sets the maximum field length toInteger.MAX_VALUE.
-
LIMITED
public static final IndexWriter.MaxFieldLength LIMITED
Deprecated.Sets the maximum field length toIndexWriter.DEFAULT_MAX_FIELD_LENGTH
-
-