- All Implemented Interfaces:
Serializable,Comparable<DocProperty.Option>
- Enclosing class:
- DocProperty
Index options for a property.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse the default which means analysed string properties use POSITIONS as the default and all other types use DOCS.Only index the doc number.Doc number and term frequencies are indexed.Doc number, term frequencies, term positions and start/end offsets are indexed.Doc number, term frequencies and term positions are indexed. -
Method Summary
Modifier and TypeMethodDescriptionstatic DocProperty.OptionReturns the enum constant of this type with the specified name.static DocProperty.Option[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DOCS
Only index the doc number. -
FREQS
Doc number and term frequencies are indexed. -
POSITIONS
Doc number, term frequencies and term positions are indexed. -
OFFSETS
Doc number, term frequencies, term positions and start/end offsets are indexed. -
DEFAULT
Use the default which means analysed string properties use POSITIONS as the default and all other types use DOCS.
-
-
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
-