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
Sets the maximum field length to
IndexWriter.DEFAULT_MAX_FIELD_LENGTH |
static IndexWriter.MaxFieldLength |
UNLIMITED
Sets the maximum field length to
Integer.MAX_VALUE . |
Constructor and Description |
---|
MaxFieldLength(int limit)
Public constructor to allow users to specify the maximum field size limit.
|
Modifier and Type | Method and Description |
---|---|
int |
getLimit() |
java.lang.String |
toString() |
public static final IndexWriter.MaxFieldLength UNLIMITED
Integer.MAX_VALUE
.public static final IndexWriter.MaxFieldLength LIMITED
IndexWriter.DEFAULT_MAX_FIELD_LENGTH
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.