Class LuceneBackendSettings
Constants in this class are to be appended to a prefix to form a property key;
see BackendSettings for details.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDefault values for the different settings if no values are given. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe configurer for analysis.static final StringThe Lucene version to passed to analyzers when they are created.static final StringHow to implement multi-tenancy.static final StringThe configurer for query caching.static final StringStrategy that defines how to read/write IDs to/from a document.static final StringThe size of the thread pool assigned to the backend.static final StringThe value to set thebackend typeconfiguration property to in order to get a Lucene backend instantiated by Hibernate Search. -
Method Summary
-
Field Details
-
TYPE_NAME
The value to set thebackend typeconfiguration property to in order to get a Lucene backend instantiated by Hibernate Search.Only useful if you have more than one backend technology in the classpath; otherwise the backend type is automatically detected.
- See Also:
-
LUCENE_VERSION
The Lucene version to passed to analyzers when they are created.This should be set in order to get consistent behavior when Lucene is upgraded.
Expects a Lucene
Versionobject, or a String accepted byVersion.parseLeniently(java.lang.String)Defaults to
LuceneBackendSettings.Defaults.LUCENE_VERSION, which may change when Hibernate Search or Lucene is upgraded, and therefore does not offer any backwards-compatibility guarantees. The recommended approach is to set this property explicitly to the version of Lucene you want to target.- See Also:
-
MULTI_TENANCY_STRATEGY
How to implement multi-tenancy.Expects a
MultiTenancyStrategyNamevalue, or a String representation of such value.Defaults to
LuceneBackendSettings.Defaults.MULTI_TENANCY_STRATEGY.- See Also:
-
ANALYSIS_CONFIGURER
The configurer for analysis.Expects a single-valued or multi-valued reference to beans of type
LuceneAnalysisConfigurer.Defaults to no value.
-
QUERY_CACHING_CONFIGURER
The configurer for query caching.Expects a single-valued or multi-valued reference to beans of type
QueryCachingConfigurer.Defaults to no value.
-
THREAD_POOL_SIZE
The size of the thread pool assigned to the backend.Expects a strictly positive integer value, or a string that can be parsed into an integer value.
See the reference documentation, section "Lucene backend - Threads", for more information about this setting and its implications.
Defaults to the number of processor cores available to the JVM on startup.
- See Also:
-
SCHEMA_ID_STRATEGY
Strategy that defines how to read/write IDs to/from a document.Expects a
SchemaIdStrategyvalue, or a String representation of such value.Defaults to
LuceneBackendSettings.Defaults.SCHEMA_ID_STRATEGY.- See Also:
-