Class Environment

java.lang.Object
org.hibernate.search.Environment

public final class Environment extends Object
  • Field Details

    • AUTOREGISTER_LISTENERS

      public static final String AUTOREGISTER_LISTENERS
      Enable listeners auto registration in Hibernate Annotations and EntityManager. Default to true.
      See Also:
    • INDEXING_STRATEGY

      public static final String INDEXING_STRATEGY
      Defines the indexing strategy, default event Other options manual
      See Also:
    • ANALYZER_CLASS

      public static final String ANALYZER_CLASS
      Default Lucene analyser
      See Also:
    • SIMILARITY_CLASS

      public static final String SIMILARITY_CLASS
      Default Lucene similarity
      See Also:
    • WORKER_PREFIX

      public static final String WORKER_PREFIX
      See Also:
    • WORKER_SCOPE

      public static final String WORKER_SCOPE
      See Also:
    • WORKER_BACKEND

      public static final String WORKER_BACKEND
      See Also:
    • WORKER_EXECUTION

      public static final String WORKER_EXECUTION
      See Also:
    • WORKER_BATCHSIZE

      public static final String WORKER_BATCHSIZE
      Defines the maximum number of indexing operation batched per transaction
      See Also:
    • WORKER_THREADPOOL_SIZE

      public static final String WORKER_THREADPOOL_SIZE
      only used then execution is async Thread pool size default 1
      See Also:
    • WORKER_WORKQUEUE_SIZE

      public static final String 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

      public static final String READER_PREFIX
      define the reader prefix
      See Also:
    • READER_STRATEGY

      public static final String READER_STRATEGY
      define the reader strategy used
      See Also:
    • FILTER_CACHING_STRATEGY

      public static final String FILTER_CACHING_STRATEGY
      filter caching strategy class (must have a no-arg constructor and implement FilterCachingStrategy)
      See Also:
    • CACHE_DOCIDRESULTS_SIZE

      public static final String CACHE_DOCIDRESULTS_SIZE
      number of docidresults cached in hard reference.
      See Also:
    • BATCH_BACKEND

      public static final String 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

      public static final String 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

      public static final 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. 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

      public static final String SIMILARITY_CLASS_PER_INDEX
      Define the similarity class name for a given index
      See Also:
    • MODEL_MAPPING

      public static final String MODEL_MAPPING
      See Also:
    • ERROR_HANDLER

      public static final 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. Default is to log errors.
      See Also:
    • JMX_ENABLED

      public static final String JMX_ENABLED
      If set to true JMX beans get enabled. For all other values the beans do not. get enabled.
      See Also:
    • GENERATE_STATS

      public static final String GENERATE_STATS
      If set to true the search statistic will be gathered.
      See Also:
    • LUCENE_MATCH_VERSION

      public static final String LUCENE_MATCH_VERSION
      The Lucene match version parameter. Needed since Lucene 3.x
      See Also:
    • DEFAULT_NULL_TOKEN

      public static final String DEFAULT_NULL_TOKEN
      Parameter name used to configure the default null token
      See Also:
    • RESOURCE_CHARSET

      public static final String RESOURCE_CHARSET
      Tokenizer or filter parameter describing the charset used to load associated resources if needed.
      See Also:
    • ENABLE_DIRTY_CHECK

      public static final String 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

      public static final 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. When the limit is reached work producers are blocked until some work has been processed.
      See Also: