Class LuceneBackendSettings
- java.lang.Object
-
- org.hibernate.search.backend.lucene.cfg.LuceneBackendSettings
-
public final class LuceneBackendSettings extends Object
Configuration properties for Lucene backends.Constants in this class are to be appended to a prefix to form a property key; see
BackendSettingsfor details.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLuceneBackendSettings.DefaultsDefault values for the different settings if no values are given.static classLuceneBackendSettings.DirectoryRadicalsDeprecated.UseLuceneIndexSettings.DirectoryRadicalsinstead.
-
Field Summary
Fields Modifier and Type Field Description static StringANALYSIS_CONFIGURERThe analysis configurer to use.static StringDIRECTORY_FILESYSTEM_ACCESS_STRATEGYDeprecated.static StringDIRECTORY_LOCKING_STRATEGYDeprecated.UseLuceneIndexSettings.DIRECTORY_LOCKING_STRATEGYinstead.static StringDIRECTORY_PREFIXDeprecated.UseLuceneIndexSettings.DIRECTORY_PREFIXinstead.static StringDIRECTORY_ROOTDeprecated.UseLuceneIndexSettings.DIRECTORY_ROOTinstead.static StringDIRECTORY_TYPEDeprecated.UseLuceneIndexSettings.DIRECTORY_TYPEinstead.static StringLUCENE_VERSIONThe Lucene version to passed to analyzers when they are created.static StringMULTI_TENANCY_STRATEGYThe multi-tenancy strategy to use.static StringTHREAD_POOL_SIZEThe size of the thread pool assigned to the backend.static StringTYPE_NAMEThe name to use for thebackend typeconfiguration property so that a Lucene backend is instantiated by Hibernate Search.
-
-
-
Field Detail
-
TYPE_NAME
public static final String TYPE_NAME
The name to use for thebackend typeconfiguration property so that a Lucene backend is 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:
- Constant Field Values
-
LUCENE_VERSION
public static final String 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
Version, 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 is really not a good choice. You really should set this property with your own value.- See Also:
- Constant Field Values
-
DIRECTORY_PREFIX
@Deprecated public static final String DIRECTORY_PREFIX
Deprecated.UseLuceneIndexSettings.DIRECTORY_PREFIXinstead.- See Also:
- Constant Field Values
-
DIRECTORY_TYPE
@Deprecated public static final String DIRECTORY_TYPE
Deprecated.UseLuceneIndexSettings.DIRECTORY_TYPEinstead.- See Also:
- Constant Field Values
-
DIRECTORY_ROOT
@Deprecated public static final String DIRECTORY_ROOT
Deprecated.UseLuceneIndexSettings.DIRECTORY_ROOTinstead.- See Also:
- Constant Field Values
-
DIRECTORY_LOCKING_STRATEGY
@Deprecated public static final String DIRECTORY_LOCKING_STRATEGY
Deprecated.UseLuceneIndexSettings.DIRECTORY_LOCKING_STRATEGYinstead.- See Also:
- Constant Field Values
-
DIRECTORY_FILESYSTEM_ACCESS_STRATEGY
@Deprecated public static final String DIRECTORY_FILESYSTEM_ACCESS_STRATEGY
Deprecated.- See Also:
- Constant Field Values
-
MULTI_TENANCY_STRATEGY
public static final String MULTI_TENANCY_STRATEGY
The multi-tenancy strategy to use.Expects a
MultiTenancyStrategyNamevalue, or a String representation of such value.Defaults to
LuceneBackendSettings.Defaults.MULTI_TENANCY_STRATEGY.- See Also:
- Constant Field Values
-
ANALYSIS_CONFIGURER
public static final String ANALYSIS_CONFIGURER
The analysis configurer to use.Expects a reference to a bean of type
LuceneAnalysisConfigurer.Defaults to no value.
-
THREAD_POOL_SIZE
public static final String 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 to such integer value.
Defaults to the number of processor cores available to the JVM on startup.
See the reference documentation, section "Lucene backend - Threads", for more information about this setting and its implications.
- See Also:
- Constant Field Values
-
-