LimitTokenCountAnalyzer instead.@Deprecated
public static final class IndexWriter.MaxFieldLength
extends java.lang.Object
IndexWriter constructors. IndexWriter.setMaxFieldLength(int) overrides
the value set by the constructor.| Modifier and Type | Field and Description |
|---|---|
static IndexWriter.MaxFieldLength |
LIMITED
Deprecated.
Sets the maximum field length to
IndexWriter.DEFAULT_MAX_FIELD_LENGTH |
static IndexWriter.MaxFieldLength |
UNLIMITED
Deprecated.
Sets the maximum field length to
Integer.MAX_VALUE. |
| Constructor and Description |
|---|
MaxFieldLength(int limit)
Deprecated.
Public constructor to allow users to specify the maximum field size limit.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLimit()
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
public static final IndexWriter.MaxFieldLength UNLIMITED
Integer.MAX_VALUE.public static final IndexWriter.MaxFieldLength LIMITED
IndexWriter.DEFAULT_MAX_FIELD_LENGTHCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.