Class IndexSettings

java.lang.Object
org.hibernate.search.engine.cfg.IndexSettings

public final class IndexSettings extends Object
Configuration properties common to all Hibernate Search indexes regardless of the underlying technology.

Constants in this class are to be appended to a prefix to form a property key. The exact prefix will be either "hibernate.search.backend.indexes.<index-name>." (for per-index settings) or "hibernate.search.backend." (for default index settings).

  • Method Details

    • indexKey

      public static String indexKey(String indexName, String radical)
      Builds a configuration property key for the index of the given backend, with the given radical.

      See the javadoc of your backend for available radicals.

      Example result: "hibernate.search.backend.indexes.myIndex.indexing.queue_size"
      Parameters:
      indexName - The name of the index to configure.
      radical - The radical of the configuration property (see constants in ElasticsearchIndexSettings, LuceneIndexSettings, etc.)
      Returns:
      the concatenated index settings key
    • indexKey

      public static String indexKey(String backendName, String indexName, String radical)
      Builds a configuration property key for the index of the given backend, with the given radical.

      See the javadoc of your backend for available radicals.

      Example result: "hibernate.search.backends.<backendName>.indexes.<indexName>.indexing.queue_size"
      Parameters:
      backendName - The name of the backend in which the index to configure is located.
      indexName - The name of the index to configure.
      radical - The radical of the configuration property (see constants in ElasticsearchIndexSettings, LuceneIndexSettings, etc.)
      Returns:
      the concatenated index settings key