public class DefaultElasticsearchSchemaValidator extends Object implements ElasticsearchSchemaValidator, Startable, Stoppable
ElasticsearchSchemaValidator implementation.
Important implementation note: unexpected attributes (i.e. those not mapped to a field in TypeMapping)
are totally ignored. This allows users to leverage Elasticsearch features that are not supported in
Hibernate Search, by setting those attributes manually.| Constructor and Description |
|---|
DefaultElasticsearchSchemaValidator() |
| Modifier and Type | Method and Description |
|---|---|
void |
start(Properties properties,
BuildContext context) |
void |
stop() |
void |
validate(IndexMetadata expectedIndexMetadata,
ExecutionOptions executionOptions)
Retrieves and validate actual index metadata, throwing an exception if validation fails.
|
public void start(Properties properties, BuildContext context)
public void validate(IndexMetadata expectedIndexMetadata, ExecutionOptions executionOptions)
ElasticsearchSchemaValidatorvalidate in interface ElasticsearchSchemaValidatorexpectedIndexMetadata - The expected metadata, generated by Hibernate Search.Copyright © 2006–2016 Hibernate. All rights reserved.