public final class Environment extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ANALYZER_CLASS
Default Lucene analyser
|
static String |
AUTOREGISTER_LISTENERS
Enable listeners auto registration in Hibernate Annotations and EntityManager.
|
static String |
CACHE_DOCIDRESULTS_SIZE
number of docidresults cached in hard reference.
|
static String |
DATABASE_RETRIEVAL_METHOD
Property name to set the default database retrieval method during object initialization.
|
static Version |
DEFAULT_LUCENE_MATCH_VERSION
If nothing else is specified we use
Version.LUCENE_CURRENT as the default Lucene version. |
static String |
DEFAULT_NULL_TOKEN
Parameter name used to configure the default null token
|
static Map<Class<? extends Service>,String> |
DEFAULT_SERVICES_MAP |
static String |
ENABLE_DIRTY_CHECK
When enabled re-indexing of an entity is skipped if the updates affect only non-indexed fields.
|
static String |
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.
|
static String |
EXCLUSIVE_INDEX_USE
When set to true a lock on the index will not be released until the
SearchIntegrator (or SessionFactory) is closed.
|
static String |
FILTER_CACHING_STRATEGY
filter caching strategy class (must have a no-arg constructor and implement FilterCachingStrategy)
|
static String |
GENERATE_STATS
If set to
true the search statistic will be gathered. |
static String |
INDEX_FLUSH_INTERVAL
The lucene backend can operate in async mode, and can apply changes to the index at
regular intervals, effectively collapsing incoming changesets in order to reduce the
amount of commits.
|
static String |
INDEX_MANAGER_IMPL_NAME
Used to specify an alternative IndexManager implementation for a specific index.
|
static String |
INDEX_METADATA_COMPLETE
Boolean setting, defaults to
true . |
static String |
INDEX_NAME_JMS_PROPERTY
Name of the JMS message property containing the index name to which to apply remote work.
|
static String |
INDEXING_STRATEGY
Defines the indexing strategy, default
event
Other options manual |
static String |
JMX_BEAN_SUFFIX
If JMX bean deployment is enabled (see
JMX_ENABLED ) the specified suffix will be appended to the registered
MBean names. |
static String |
JMX_ENABLED
If set to
true JMX beans get enabled. |
static String |
LUCENE_MATCH_VERSION
The Lucene match version parameter.
|
static String |
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.
|
static String |
MODEL_MAPPING
Provide a programmatic mapping model to Hibernate Search configuration
Accepts a fully populated SearchMapping object or a fully qualified
class name of a SearchMapping factory.
|
static String |
OBJECT_LOOKUP_METHOD
Property name to set the default object lookup method during object initialization.
|
static String |
QUEUEINGPROCESSOR_BATCHSIZE
Defines the maximum number of indexing operation batched per transaction
|
static String |
READER_PREFIX
define the reader prefix
|
static String |
READER_STRATEGY
define the reader strategy used
|
static String |
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.
|
static String |
SIMILARITY_CLASS
Default Lucene similarity
|
static String |
SIMILARITY_CLASS_PER_INDEX
Define the similarity class name for a given index
|
static String |
WORKER_BACKEND |
static String |
WORKER_EXECUTION |
static String |
WORKER_PREFIX |
static String |
WORKER_SCOPE |
public static final String OBJECT_LOOKUP_METHOD
ObjectLookupMethod
,
Constant Field Valuespublic static final String DATABASE_RETRIEVAL_METHOD
DatabaseRetrievalMethod
,
Constant Field Valuespublic static final String AUTOREGISTER_LISTENERS
public static final String INDEXING_STRATEGY
event
Other options manual
public static final String ANALYZER_CLASS
public static final String SIMILARITY_CLASS
public static final String WORKER_SCOPE
public static final String WORKER_PREFIX
public static final String WORKER_BACKEND
public static final String WORKER_EXECUTION
public static final String QUEUEINGPROCESSOR_BATCHSIZE
public static final String READER_PREFIX
public static final String READER_STRATEGY
public static final String FILTER_CACHING_STRATEGY
public static final String CACHE_DOCIDRESULTS_SIZE
public static final String EXCLUSIVE_INDEX_USE
public static final String INDEX_METADATA_COMPLETE
true
.
Unless it's disabled Hibernate Search will assume it knows all entities mapped
to this index and will enable all optimizations which are considered safe
in the known schema.
For example it will delete indexed entities from the index using only the
identifier if there is only one type in the index; when multiple types share
the same index or this option is disabled it will need to delete entities
using both the id and the classname.public static final String RETRY_MARKER_LOOKUP
public static final String SIMILARITY_CLASS_PER_INDEX
public static final String MODEL_MAPPING
public static final String ERROR_HANDLER
public static final String JMX_ENABLED
true
JMX beans get enabled. For all other values the beans do not.
get enabled.public static final String JMX_BEAN_SUFFIX
JMX_ENABLED
) the specified suffix will be appended to the registered
MBean names. This allows for running multiple apps on the same JVM each which JMX enabled. If not specified only the default
names are used.public static final String GENERATE_STATS
true
the search statistic will be gathered.public static final String LUCENE_MATCH_VERSION
public static final String DEFAULT_NULL_TOKEN
public static final String ENABLE_DIRTY_CHECK
public static final String MAX_QUEUE_LENGTH
public static final String INDEX_FLUSH_INTERVAL
public static final Version DEFAULT_LUCENE_MATCH_VERSION
Version.LUCENE_CURRENT
as the default Lucene version. This version
parameter was introduced by Lucene to attempt providing backwards compatibility when upgrading Lucene versions
and not wanting to rebuild the index from scratch. It's highly recommended to specify a version, so that you
can upgrade Hibernate Search and control when to eventually upgrade the Lucene format.public static final String INDEX_MANAGER_IMPL_NAME
public static final String INDEX_NAME_JMS_PROPERTY
Copyright © 2006-2015 Red Hat, Inc. All Rights Reserved