Enum IndexWriterSetting
- All Implemented Interfaces:
Serializable,Comparable<IndexWriterSetting>,java.lang.constant.Constable
Represents possible options to be applied to an
org.apache.lucene.index.IndexWriter.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplySetting(IndexWriterConfig writerConfig, int value) voidapplySetting(LogByteSizeMergePolicy logByteSizeMergePolicy, int value) getKey()Specific parameters may override to provide additional keywords support.static IndexWriterSettingReturns the enum constant of this type with the specified name.static IndexWriterSetting[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MAX_BUFFERED_DELETE_TERMS
- See Also:
-
MAX_BUFFERED_DOCS
- See Also:
-
MAX_FIELD_LENGTH
Deprecated.No longer applied - use a LimitTokenCountAnalyzer.- See Also:
-
MAX_MERGE_DOCS
- See Also:
-
MERGE_FACTOR
- See Also:
-
RAM_BUFFER_SIZE
- See Also:
-
TERM_INDEX_INTERVAL
- See Also:
-
USE_COMPOUND_FILE
- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
applySetting
- Throws:
IllegalArgumentException- when user selects an invalid value; should be wrapped.
-
applySetting
- Throws:
IllegalArgumentException- when user selects an invalid value; should be wrapped.
-
getKey
- Returns:
- The key used in configuration files to select an option.
-
parseVal
Specific parameters may override to provide additional keywords support.- Parameters:
value- the string value as in configuration file- Returns:
- the integer value going to be set as parameter
- Throws:
SearchException- for unrecognized values
-