public interface ElasticsearchOperations extends DocumentOperations, SearchOperations
| Modifier and Type | Method and Description |
|---|---|
ClusterOperations |
cluster()
return a
ClusterOperations instance that uses the same client communication setup as this
ElasticsearchOperations instance. |
ElasticsearchConverter |
getElasticsearchConverter() |
String |
getEntityRouting(Object entity)
gets the routing for an entity which might be defined by a join-type relation
|
IndexCoordinates |
getIndexCoordinatesFor(Class<?> clazz) |
IndexOperations |
indexOps(Class<?> clazz)
get an
IndexOperations that is bound to the given class |
IndexOperations |
indexOps(IndexCoordinates index)
get an
IndexOperations that is bound to the given index |
default String |
stringIdRepresentation(Object id)
gets the String representation for an id.
|
ElasticsearchOperations |
withRouting(RoutingResolver routingResolver)
Returns a copy of this instance with the same configuration, but that uses a different
RoutingResolver to
obtain routing information. |
bulkIndex, bulkIndex, bulkIndex, bulkIndex, bulkUpdate, bulkUpdate, bulkUpdate, delete, delete, delete, delete, delete, delete, delete, exists, exists, get, get, index, multiGet, multiGet, save, save, save, save, save, update, updateByQuerycount, count, count, multiSearch, multiSearch, multiSearch, multiSearch, search, search, search, search, searchForStream, searchForStream, searchOne, searchOne, suggest, suggestIndexOperations indexOps(Class<?> clazz)
IndexOperations that is bound to the given classIndexOperations indexOps(IndexCoordinates index)
IndexOperations that is bound to the given indexClusterOperations cluster()
ClusterOperations instance that uses the same client communication setup as this
ElasticsearchOperations instance.ElasticsearchConverter getElasticsearchConverter()
IndexCoordinates getIndexCoordinatesFor(Class<?> clazz)
@Nullable String getEntityRouting(Object entity)
entity - the entity@Nullable default String stringIdRepresentation(@Nullable Object id)
id - ElasticsearchOperations withRouting(RoutingResolver routingResolver)
RoutingResolver to
obtain routing information.routingResolver - the RoutingResolver value, must not be null.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.