public interface ElasticsearchOperations extends DocumentOperations, SearchOperations
bulkIndex, bulkIndex, bulkUpdate, bulkUpdate, delete, delete, delete, delete, delete, delete, exists, exists, get, get, get, index, multiGet, queryForObject, save, save, save, save, save, update
count, count, count, moreLikeThis, multiSearch, multiSearch, queryForIds, queryForList, queryForList, queryForList, queryForObject, queryForPage, queryForPage, queryForPage, search, search, search, search, searchForStream, searchForStream, searchOne, searchOne, stream, suggest
IndexOperations indexOps(Class<?> clazz)
IndexOperations
that is bound to the given classIndexOperations indexOps(IndexCoordinates index)
IndexOperations
that is bound to the given classElasticsearchConverter getElasticsearchConverter()
IndexCoordinates getIndexCoordinatesFor(Class<?> clazz)
@Deprecated default boolean createIndex(String indexName)
IndexOperations.create()
indexName
- the name of the index@Deprecated default boolean createIndex(String indexName, Object settings)
IndexOperations.create(Document)
indexName
- the name of the indexsettings
- the index settings@Deprecated default boolean createIndex(Class<?> clazz)
IndexOperations.create()
clazz
- The entity class, must be annotated with
Document
@Deprecated default boolean createIndex(Class<?> clazz, Object settings)
IndexOperations.create(Document)
clazz
- The entity class, must be annotated with
Document
settings
- the index settings@Deprecated default boolean deleteIndex(Class<?> clazz)
IndexOperations.delete()
clazz
- The entity class, must be annotated with
Document
@Deprecated default boolean deleteIndex(String indexName)
IndexOperations.delete()
indexName
- the name of the index to delete@Deprecated default boolean deleteIndex(IndexCoordinates index)
indexOps(IndexCoordinates)
and IndexOperations.delete()
index
- the index to delete@Deprecated default boolean indexExists(String indexName)
indexOps(IndexCoordinates)
and IndexOperations.exists()
indexName
- the name of the index@Deprecated default boolean indexExists(Class<?> clazz)
indexOps(Class)
and IndexOperations.exists()
clazz
- The entity class, must be annotated with
Document
@Deprecated default boolean putMapping(Class<?> clazz)
indexOps(Class)
, IndexOperations.createMapping(Class)
and
IndexOperations.putMapping(Document)
clazz
- The entity class, must be annotated with
Document
@Deprecated default boolean putMapping(IndexCoordinates index, Class<?> clazz)
indexOps(IndexCoordinates)
, IndexOperations.createMapping(Class)
and
IndexOperations.putMapping(Document)
index
- the index to store the mapping toclazz
- The entity class, must be annotated with
Document
@Deprecated default boolean putMapping(IndexCoordinates index, Object mappings)
indexOps(IndexCoordinates)
and IndexOperations.putMapping(Document)
index
- the index to store the mapping tomappings
- can be a JSON String or a Map
@Deprecated default boolean putMapping(Class<?> clazz, Object mappings)
indexOps(Class)
and IndexOperations.putMapping(Document)
@Deprecated default Map<String,Object> getMapping(Class<?> clazz)
indexOps(Class)
and IndexOperations.getMapping()
clazz
- The entity class, must be annotated with
Document
.@Deprecated default Map<String,Object> getMapping(IndexCoordinates index)
indexOps(IndexCoordinates)
and IndexOperations.getMapping()
index
- the index to read the mapping from@Deprecated default boolean addAlias(AliasQuery query, IndexCoordinates index)
indexOps(IndexCoordinates)
and IndexOperations.addAlias(AliasQuery)
query
- query defining the aliasindex
- the index for which to add an alias@Deprecated default boolean removeAlias(AliasQuery query, IndexCoordinates index)
indexOps(IndexCoordinates)
IndexOperations.removeAlias(AliasQuery)
query
- query defining the aliasindex
- the index for which to remove an alias@Deprecated default List<org.elasticsearch.cluster.metadata.AliasMetaData> queryForAlias(String indexName)
indexOps(IndexCoordinates)
and IndexOperations.queryForAlias()
indexName
- the name of the index@Deprecated default Map<String,Object> getSetting(String indexName)
indexOps(IndexCoordinates)
and IndexOperations.getSettings()
)}indexName
- the name of the index@Deprecated default Map<String,Object> getSetting(Class<?> clazz)
indexOps(Class)
and IndexOperations.getSettings()
clazz
- The entity class, must be annotated with
Document
@Deprecated default Map<String,Object> getSettings(String indexName, boolean includeDefaults)
indexOps(IndexCoordinates)
and IndexOperations.getSettings(boolean)
()}indexName
- the name of the indexincludeDefaults
- whether or not to include all the default settingsdefault Map<String,Object> getSettings(Class<?> clazz, boolean includeDefaults)
indexOps(Class)
and IndexOperations.getSettings(boolean)
()}clazz
- The entity class, must be annotated with
Document
includeDefaults
- whether or not to include all the default settings@Deprecated default void refresh(IndexCoordinates index)
indexOps(IndexCoordinates)
and IndexOperations.refresh()
instead}index
- the index to refresh@Deprecated default void refresh(Class<?> clazz)
indexOps(Class)
and IndexOperations.refresh()
instead}clazz
- The entity class, must be annotated with
Document
@Deprecated @Nullable default Document getDocument(Object object)
object
- Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.