public interface ElasticsearchSchemaMigrator extends Service
Modifier and Type | Method and Description |
---|---|
void |
merge(IndexMetadata indexMetadata,
ExecutionOptions executionOptions)
Merge metadata with the existing schema: for each mapping, merge the existing mapping
with the expected one, throwing
SearchException if an incompatible attribute
is detected. |
void merge(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 Red Hat, Inc. All Rights Reserved