| Package | Description |
|---|---|
| org.springframework.data.elasticsearch.core | |
| org.springframework.data.elasticsearch.core.convert | |
| org.springframework.data.elasticsearch.core.document | |
| org.springframework.data.elasticsearch.core.event |
classes and interfaces related to Spring Data Elasticsearch events and callbacks.
|
| org.springframework.data.elasticsearch.core.index |
Classes related to Elasticsearch index management.
|
| org.springframework.data.elasticsearch.core.mapping | |
| org.springframework.data.elasticsearch.core.query |
| Modifier and Type | Method and Description |
|---|---|
Document |
IndexOperations.createMapping()
Creates the index mapping for the entity this IndexOperations is bound to.
|
Document |
IndexOperations.createMapping(Class<?> clazz)
Creates the index mapping for the given class
|
Document |
IndexOperations.createSettings()
Creates the index settings for the entity this IndexOperations is bound to.
|
Document |
IndexOperations.createSettings(Class<?> clazz)
Creates the index settings from the annotations on the given class
|
default Document |
ElasticsearchOperations.getDocument(Object object)
Deprecated.
since 4.0, helper method for deprecated functions
|
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Document> |
ReactiveIndexOperations.createMapping()
Creates the index mapping for the entity this IndexOperations is bound to.
|
reactor.core.publisher.Mono<Document> |
ReactiveIndexOperations.createMapping(Class<?> clazz)
Creates the index mapping for the given class
|
reactor.core.publisher.Mono<Document> |
ReactiveIndexOperations.createSettings()
Creates the index settings for the entity this IndexOperations is bound to.
|
reactor.core.publisher.Mono<Document> |
ReactiveIndexOperations.createSettings(Class<?> clazz)
Creates the index settings from the annotations on the given class
|
reactor.core.publisher.Mono<Document> |
ReactiveIndexOperations.getMapping()
Get mapping for the index targeted defined by this
ReactiveIndexOperations |
default reactor.core.publisher.Mono<Document> |
ReactiveIndexOperations.getSettings()
get the settings for the index
|
reactor.core.publisher.Mono<Document> |
ReactiveIndexOperations.getSettings(boolean includeDefaults)
get the settings for the index
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
IndexOperations.create(Document settings)
Create an index for given Settings.
|
reactor.core.publisher.Mono<Boolean> |
ReactiveIndexOperations.create(Document settings)
Create an index with the specified settings.
|
T |
AbstractElasticsearchTemplate.DocumentCallback.doWith(Document document) |
T |
AbstractElasticsearchTemplate.ReadDocumentCallback.doWith(Document document) |
protected <T> reactor.core.publisher.Mono<T> |
ReactiveElasticsearchTemplate.maybeCallAfterConvert(T entity,
Document document,
IndexCoordinates index) |
protected <T> T |
AbstractElasticsearchTemplate.maybeCallbackAfterConvert(T entity,
Document document,
IndexCoordinates index) |
boolean |
IndexOperations.putMapping(Document mapping)
writes a mapping to the index
|
reactor.core.publisher.Mono<T> |
ReactiveElasticsearchTemplate.DocumentCallback.toEntity(Document document) |
reactor.core.publisher.Mono<T> |
ReactiveElasticsearchTemplate.ReadDocumentCallback.toEntity(Document document) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Boolean> |
ReactiveIndexOperations.putMapping(reactor.core.publisher.Mono<Document> mapping)
writes a mapping to the index
|
| Constructor and Description |
|---|
ReadDocumentCallback(EntityReader<? super T,Document> reader,
Class<T> type,
IndexCoordinates index) |
ReadDocumentCallback(EntityReader<? super T,Document> reader,
Class<T> type,
IndexCoordinates index) |
| Modifier and Type | Method and Description |
|---|---|
default Document |
ElasticsearchConverter.mapObject(Object source)
Map an object to a
Document. |
| Modifier and Type | Method and Description |
|---|---|
<R> R |
MappingElasticsearchConverter.read(Class<R> type,
Document source) |
void |
MappingElasticsearchConverter.write(Object source,
Document sink) |
protected void |
MappingElasticsearchConverter.writeEntity(ElasticsearchPersistentEntity<?> entity,
Object source,
Document sink,
TypeInformation<?> containingStructure) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
SearchDocument
Extension to
Document exposing a search response related data. |
| Modifier and Type | Method and Description |
|---|---|
default Document |
Document.append(String key,
Object value)
|
static Document |
Document.create()
Create a new mutable
Document. |
static Document |
DocumentAdapters.from(org.elasticsearch.action.get.GetResponse source)
Create a
Document from GetResponse. |
static Document |
DocumentAdapters.from(org.elasticsearch.index.get.GetResult source)
Create a
Document from GetResult. |
static Document |
Document.from(Map<String,? extends Object> map)
|
static Document |
DocumentAdapters.fromDocumentFields(Iterable<org.elasticsearch.common.document.DocumentField> documentFields,
String index,
String id,
long version,
long seqNo,
long primaryTerm)
|
static Document |
Document.parse(String json)
Parse JSON to
Document. |
| Modifier and Type | Method and Description |
|---|---|
static List<Document> |
DocumentAdapters.from(org.elasticsearch.action.get.MultiGetResponse source)
Creates a List of
Documents from MultiGetResponse. |
| Modifier and Type | Method and Description |
|---|---|
default <R> R |
Document.transform(Function<? super Document,? extends R> transformer)
This method allows the application of a function to
this Document. |
| Modifier and Type | Method and Description |
|---|---|
T |
AfterConvertCallback.onAfterConvert(T entity,
Document document,
IndexCoordinates indexCoordinates)
Entity callback method invoked after a domain object is materialized from a
Document. |
org.reactivestreams.Publisher<T> |
ReactiveAfterConvertCallback.onAfterConvert(T entity,
Document document,
IndexCoordinates indexCoordinates)
Entity callback method invoked after a domain object is materialized from a
Document. |
| Modifier and Type | Method and Description |
|---|---|
Document |
AliasData.getFilter() |
Document |
TemplateData.getMapping() |
Document |
PutTemplateRequest.getMappings() |
Document |
TemplateData.getSettings() |
Document |
PutTemplateRequest.getSettings() |
| Modifier and Type | Method and Description |
|---|---|
static AliasData |
AliasData.of(String alias,
Document filter,
String indexRouting,
String searchRouting,
Boolean isWriteIndex,
Boolean isHidden) |
TemplateData.TemplateDataBuilder |
TemplateData.TemplateDataBuilder.withMapping(Document mapping) |
PutTemplateRequest.TemplateRequestBuilder |
PutTemplateRequest.TemplateRequestBuilder.withMappings(Document mappings) |
TemplateData.TemplateDataBuilder |
TemplateData.TemplateDataBuilder.withSettings(Document settings) |
PutTemplateRequest.TemplateRequestBuilder |
PutTemplateRequest.TemplateRequestBuilder.withSettings(Document settings) |
| Modifier and Type | Method and Description |
|---|---|
Document |
ElasticsearchPersistentEntity.getDefaultSettings()
returns the default settings for an index.
|
Document |
SimpleElasticsearchPersistentEntity.getDefaultSettings() |
| Modifier and Type | Method and Description |
|---|---|
Document |
UpdateQuery.getDocument() |
Document |
UpdateQuery.getUpsert() |
| Modifier and Type | Method and Description |
|---|---|
UpdateQuery.Builder |
UpdateQuery.Builder.withDocument(Document document) |
UpdateQuery.Builder |
UpdateQuery.Builder.withUpsert(Document upsert) |
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.