public interface ElasticsearchConverter extends EntityConverter<ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty,Object,Document>
| Modifier and Type | Method and Description |
|---|---|
default String |
convertId(Object idValue)
Convert a given idValue to its
String representation taking potentially registered
Converters into account. |
default ProjectionFactory |
getProjectionFactory()
Get the configured
ProjectionFactory. |
default Document |
mapObject(Object source)
Map an object to a
Document. |
void |
updateQuery(Query query,
Class<?> domainClass)
Updates a
Query by renaming the property names in the query to the correct mapped field names and the
values to the converted values if the ElasticsearchPersistentProperty for a property has a
PropertyValueConverter. |
getConversionService, getMappingContextreadwritedefault ProjectionFactory getProjectionFactory()
ProjectionFactory. default String convertId(Object idValue)
String representation taking potentially registered
Converters into account.idValue - must not be null.default Document mapObject(@Nullable Object source)
Document.source - the object to mapvoid updateQuery(Query query, @Nullable Class<?> domainClass)
Query by renaming the property names in the query to the correct mapped field names and the
values to the converted values if the ElasticsearchPersistentProperty for a property has a
PropertyValueConverter. If domainClass is null it's a noop.query - the query that is internally updated, must not be nulldomainClass - the class of the object that is searched with the queryCopyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.