public class DefaultElasticsearchSchemaMigrator extends Object implements ElasticsearchSchemaMigrator
ElasticsearchSchemaMigrator implementation.| Constructor and Description |
|---|
DefaultElasticsearchSchemaMigrator(ElasticsearchSchemaAccessor schemaAccessor,
ElasticsearchSchemaValidator schemaValidator) |
| 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. |
public DefaultElasticsearchSchemaMigrator(ElasticsearchSchemaAccessor schemaAccessor, ElasticsearchSchemaValidator schemaValidator)
public void migrate(IndexMetadata indexMetadata, ExecutionOptions executionOptions)
ElasticsearchSchemaMigratorSearchException if an incompatible attribute is detected.
The index is expected to already exist.
migrate in interface ElasticsearchSchemaMigratorindexMetadata - The expected index metadata.executionOptions - The execution options, giving more context information.Copyright © 2006–2017 Hibernate. All rights reserved.