public interface ElasticsearchSchemaMigrator
| Modifier and Type | Method and Description |
|---|---|
void |
migrate(IndexMetadata indexMetadata,
ExecutionOptions executionOptions)
Update the existing schema to match the given metadata: for each mapping,
update the existing mappings and analyzer definitions to match the expected ones,
throwing
SearchException if an incompatible attribute is detected. |
void migrate(IndexMetadata indexMetadata, ExecutionOptions executionOptions)
SearchException if an incompatible attribute is detected.
The index is expected to already exist.
indexMetadata - The expected index metadata.executionOptions - The execution options, giving more context information.SearchException - If an error occurs.Copyright © 2006–2017 Hibernate. All rights reserved.