
org.hibernate.search.elasticsearch.cfg.IndexSchemaManagementStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-search-elasticsearch Show documentation
Show all versions of hibernate-search-elasticsearch Show documentation
Hibernate Search backend which has indexing operations forwarded to Elasticsearch
/*
* Hibernate Search, full-text search for your domain model
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.search.elasticsearch.cfg;
/**
* Strategy for creating/deleting the indexes in Elasticsearch upon session factory initialization and shut-down.
*
* @author Gunnar Morling
*/
public enum IndexSchemaManagementStrategy {
/**
* Indexes will never be created or deleted. The index schema is not managed by Hibernate Search.
*/
NONE,
/**
* Upon session factory initialization, index mappings will be merged with existing ones, causing an exception if a
* mapping to be merged is not compatible with the existing one. Missing indexes and mappings will be created.
*/
MERGE,
/**
* Existing indexes will not be altered, missing indexes will be created.
*/
CREATE,
/**
* Indexes - and all their contents - will be deleted and newly created upon session factory initialization.
*/
RECREATE,
/**
* The same as {@link #RECREATE}, but indexes - and all their contents - will be deleted upon session factory
* shut-down as well.
*/
RECREATE_DELETE;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy