public interface IndexOperations
ElasticsearchOperations.indexOps(IndexCoordinates)
or ElasticsearchOperations.indexOps(Class)
Modifier and Type | Method and Description |
---|---|
boolean |
addAlias(AliasQuery query)
Add an alias.
|
boolean |
create()
Create an index.
|
boolean |
create(Document settings)
Create an index for given Settings.
|
Document |
createMapping()
Creates the index mapping for the entity this IndexOperations is bound to.
|
Document |
createMapping(Class<?> clazz)
Creates the index mapping for the given class
|
boolean |
delete()
Deletes the index this
IndexOperations is bound to |
boolean |
exists()
Checks if the index this IndexOperations is bound to exists
|
Map<String,Object> |
getMapping()
Get mapping for an index defined by a class.
|
Map<String,Object> |
getSettings()
Get the index settings.
|
Map<String,Object> |
getSettings(boolean includeDefaults)
Get settings for a given indexName.
|
boolean |
putMapping(Document mapping)
writes a mapping to the index
|
List<org.elasticsearch.cluster.metadata.AliasMetaData> |
queryForAlias()
Get the alias informations for a specified index.
|
void |
refresh()
Refresh the index(es) this IndexOperations is bound to
|
boolean |
removeAlias(AliasQuery query)
Remove an alias.
|
boolean create()
boolean create(Document settings)
settings
- the index settingsboolean delete()
IndexOperations
is bound toboolean exists()
void refresh()
Document createMapping()
Document createMapping(Class<?> clazz)
clazz
- the clazz to create a mapping forboolean putMapping(Document mapping)
mapping
- the Document with the mapping definitionsMap<String,Object> getMapping()
boolean addAlias(AliasQuery query)
query
- query defining the aliasList<org.elasticsearch.cluster.metadata.AliasMetaData> queryForAlias()
boolean removeAlias(AliasQuery query)
query
- query defining the aliasCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.