public interface ElasticsearchSchemaValidator extends Service
Modifier and Type | Method and Description |
---|---|
boolean |
isSettingsValid(IndexMetadata expectedIndexMetadata,
ExecutionOptions executionOptions)
Retrieves and validate actual index settings, returning a boolean indicating
whether the actual settings are valid or not.
|
void |
validate(IndexMetadata expectedIndexMetadata,
ExecutionOptions executionOptions)
Retrieves and validate actual index metadata, throwing an exception if validation fails.
|
void validate(IndexMetadata expectedIndexMetadata, ExecutionOptions executionOptions)
The metadata mainly contain the type mappings and the index settings.
expectedIndexMetadata
- The expected metadata, generated by Hibernate Search.executionOptions
- The execution options, giving more context information.ElasticsearchSchemaValidationException
- If a validation error occurs.boolean isSettingsValid(IndexMetadata expectedIndexMetadata, ExecutionOptions executionOptions)
expectedIndexMetadata
- The expected metadata, generated by Hibernate Search.executionOptions
- The execution options, giving more context information.ElasticsearchSchemaValidationException
- If a validation error occurs.Copyright © 2006–2017 Hibernate. All rights reserved.