public interface ElasticsearchSchemaCreator extends Service
| Modifier and Type | Method and Description |
|---|---|
void |
createIndex(IndexMetadata indexMetadata,
ExecutionOptions executionOptions)
Create an index.
|
boolean |
createIndexIfAbsent(IndexMetadata indexMetadata,
ExecutionOptions executionOptions)
Create an index, but only if the index doesn't already exist.
|
void |
createMappings(IndexMetadata indexMetadata,
ExecutionOptions executionOptions)
Create mappings on a supposedly existing index.
|
void createIndex(IndexMetadata indexMetadata, ExecutionOptions executionOptions)
indexMetadata - The expected index metadata.SearchException - If an error occurs.boolean createIndexIfAbsent(IndexMetadata indexMetadata, ExecutionOptions executionOptions)
indexMetadata - The expected index metadata.true if the index had to be created, false otherwise.SearchException - If an error occurs.void createMappings(IndexMetadata indexMetadata, ExecutionOptions executionOptions)
Mappings are supposed to be absent from the index.
indexMetadata - The expected index metadata.SearchException - If an error occurs.Copyright © 2006–2016 Hibernate. All rights reserved.