Package org.hibernate.search
Class Environment
java.lang.Object
org.hibernate.search.Environment
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault Lucene analyserstatic final StringEnable listeners auto registration in Hibernate Annotations and EntityManager.static final Stringbatch backend implementation class (must have a no-arg constructor and implement BatchBackend) also prefix for configuration settings of the batch backendstatic final Stringnumber of docidresults cached in hard reference.static final StringParameter name used to configure the default null tokenstatic final StringWhen enabled reindexing of an entity is skipped if the updates affect only non-indexed fields.static final StringSet to a fully qualified classname of a type implementing org.hibernate.search.exception.ErrorHandler to override the error strategy used during processing of the Lucene updates.static final StringWhen set to true a lock on the index will not be released until the SearchFactory (or SessionFactory) is closed.static final Stringfilter caching strategy class (must have a no-arg constructor and implement FilterCachingStrategy)static final StringIf set totruethe search statistic will be gathered.static final StringDefines the indexing strategy, defaulteventOther optionsmanualstatic final StringIf set totrueJMX beans get enabled.static final StringThe Lucene match version parameter.static final StringThe lucene backend has a separate writing thread for each index, the work pushed to each thread is put in a queue which grows up to a maximum number of elements, which is configured by this setting and defaults to 1000.static final Stringstatic final Stringdefine the reader prefixstatic final Stringdefine the reader strategy usedstatic final StringTokenizer or filter parameter describing the charset used to load associated resources if needed.static final StringNumber of times we retry the logic looking for marker files in master's directory before giving up and raising an exception.static final StringDefault Lucene similaritystatic final StringDefine the similarity class name for a given indexstatic final Stringstatic final StringDefines the maximum number of indexing operation batched per transactionstatic final Stringstatic final Stringstatic final Stringstatic final Stringonly used then execution is async Thread pool size default 1static final StringSize of the buffer queue (besides the thread pool size) only used then execution is async default infinite -
Method Summary
-
Field Details
-
AUTOREGISTER_LISTENERS
Enable listeners auto registration in Hibernate Annotations and EntityManager. Default to true.- See Also:
-
INDEXING_STRATEGY
Defines the indexing strategy, defaulteventOther optionsmanual- See Also:
-
ANALYZER_CLASS
Default Lucene analyser- See Also:
-
SIMILARITY_CLASS
Default Lucene similarity- See Also:
-
WORKER_PREFIX
- See Also:
-
WORKER_SCOPE
- See Also:
-
WORKER_BACKEND
- See Also:
-
WORKER_EXECUTION
- See Also:
-
WORKER_BATCHSIZE
Defines the maximum number of indexing operation batched per transaction- See Also:
-
WORKER_THREADPOOL_SIZE
only used then execution is async Thread pool size default 1- See Also:
-
WORKER_WORKQUEUE_SIZE
Size of the buffer queue (besides the thread pool size)- only used then execution is async
- default infinite
- See Also:
-
READER_PREFIX
define the reader prefix- See Also:
-
READER_STRATEGY
define the reader strategy used- See Also:
-
FILTER_CACHING_STRATEGY
filter caching strategy class (must have a no-arg constructor and implement FilterCachingStrategy)- See Also:
-
CACHE_DOCIDRESULTS_SIZE
number of docidresults cached in hard reference.- See Also:
-
BATCH_BACKEND
batch backend implementation class (must have a no-arg constructor and implement BatchBackend) also prefix for configuration settings of the batch backend- See Also:
-
EXCLUSIVE_INDEX_USE
When set to true a lock on the index will not be released until the SearchFactory (or SessionFactory) is closed. This improves performance in applying changes to the index, but no other application can access the index in write mode while Hibernate Search is running. This is an index-scoped property and defaults to false.- See Also:
-
RETRY_MARKER_LOOKUP
Number of times we retry the logic looking for marker files in master's directory before giving up and raising an exception. This setting is the suffix of an index using FSSlaveDirectoryProvider Note that we try again after 5 seconds. Default to 0 (ie no retry).- See Also:
-
SIMILARITY_CLASS_PER_INDEX
Define the similarity class name for a given index- See Also:
-
MODEL_MAPPING
- See Also:
-
ERROR_HANDLER
Set to a fully qualified classname of a type implementing org.hibernate.search.exception.ErrorHandler to override the error strategy used during processing of the Lucene updates. Default is to log errors.- See Also:
-
JMX_ENABLED
If set totrueJMX beans get enabled. For all other values the beans do not. get enabled.- See Also:
-
GENERATE_STATS
If set totruethe search statistic will be gathered.- See Also:
-
LUCENE_MATCH_VERSION
The Lucene match version parameter. Needed since Lucene 3.x- See Also:
-
DEFAULT_NULL_TOKEN
Parameter name used to configure the default null token- See Also:
-
RESOURCE_CHARSET
Tokenizer or filter parameter describing the charset used to load associated resources if needed.- See Also:
-
ENABLE_DIRTY_CHECK
When enabled reindexing of an entity is skipped if the updates affect only non-indexed fields. Enabled by default as it should be safe and should improve performance, disable it to force updates skipping value checks. Affect semantics of entity updates only.- See Also:
-
MAX_QUEUE_LENGTH
The lucene backend has a separate writing thread for each index, the work pushed to each thread is put in a queue which grows up to a maximum number of elements, which is configured by this setting and defaults to 1000. When the limit is reached work producers are blocked until some work has been processed.- See Also:
-