All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.search.elasticsearch.schema.impl.ElasticsearchSchemaDropper Maven / Gradle / Ivy

There is a newer version: 5.11.12.Final
Show newest version
/*
 * 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.schema.impl;

import org.hibernate.search.elasticsearch.client.impl.URLEncodedString;
import org.hibernate.search.exception.SearchException;

/**
 * An object responsible for dropping an indexes.
 *
 * @author Yoann Rodiere
 */
public interface ElasticsearchSchemaDropper {

	/**
	 * Drops an index, throwing an exception if dropping fails.
	 *
	 * @param indexName The name of the index to drop.
	 * @param executionOptions The execution options, giving more context information.
	 * @throws SearchException If an error occurs.
	 */
	void drop(URLEncodedString indexName, ExecutionOptions executionOptions);

	/**
	 * Drops an index, throwing an exception if dropping fails.
	 *
	 * 

This method will skip operations silently if the index does not exist. * * @param indexName The name of the index to drop. * @param executionOptions The execution options, giving more context information. * @throws SearchException If an error occurs. */ void dropIfExisting(URLEncodedString indexName, ExecutionOptions executionOptions); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy