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.useLimitTokenCountAnalyzer
instead.Specifies maximum field length (in number of tokens/terms) inIndexWriter
constructors.IndexWriter.setMaxFieldLength(int)
overrides the value set by the constructor.
-
-
Field Summary
Fields Modifier and Type Field Description static IndexWriter.MaxFieldLength
LIMITED
Deprecated.Sets the maximum field length toIndexWriter.DEFAULT_MAX_FIELD_LENGTH
static IndexWriter.MaxFieldLength
UNLIMITED
Deprecated.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 int
getLimit()
Deprecated.String
toString()
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
-
-