public interface ElasticsearchSchemaCreator extends Service
| Modifier and Type | Method and Description |
|---|---|
void |
checkIndexExists(String indexname,
ExecutionOptions executionOptions)
Checks that an index already exists.
|
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 checkIndexExists(String indexname, ExecutionOptions executionOptions)
indexname - The expected index name.SearchException - If the index doesn't exist, or 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.