Enum SchemaIdStrategy
- All Implemented Interfaces:
Serializable
,Comparable<SchemaIdStrategy>
Strategy that defines how to read/write IDs to/from a document.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic SchemaIdStrategy
static SchemaIdStrategy
Returns the enum constant of this type with the specified name.static SchemaIdStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LUCENE_8
Deprecated.It will be removed in a future version of Hibernate Search that will support Lucene 9. UseLUCENE_9
instead. Note that switching toa new strategy
will require indexes to be recreated and repopulated.Currently used strategy that is compatible with the current and indexes from previous Hibernate Search versions. -
LUCENE_9
This strategy will create documents compatible with future versions of Hibernate Search. Switching to this strategy for existing applications will require indexes to be recreated and repopulated.
-
-
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
-
externalRepresentation
- Returns:
- The expected string representation in configuration properties.
-
of
-