| Package | Description |
|---|---|
| org.springframework.data.elasticsearch.core | |
| org.springframework.data.elasticsearch.core.convert | |
| org.springframework.data.elasticsearch.core.document |
Classes related to the Document structure of Elasticsearch documents and search responses.
|
| 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.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 |
IndexInformation.getMapping() |
| 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.getMapping()
Get mapping for the index targeted defined by this
ReactiveIndexOperations |
| Modifier and Type | Method and Description |
|---|---|
boolean |
IndexOperations.create(Map<String,Object> settings,
Document mapping)
Create an index for given settings and mapping.
|
reactor.core.publisher.Mono<Boolean> |
ReactiveIndexOperations.create(Map<String,Object> settings,
Document mapping)
Create an index for given settings and mapping.
|
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) |
static IndexInformation |
IndexInformation.of(String name,
Settings settings,
Document mapping,
List<AliasData> aliases) |
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) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
SearchDocument
Extension to
Document exposing search response related data. |
| Modifier and Type | Method and Description |
|---|---|
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)
|
default Document |
Document.fromJson(String json) |
static Document |
Document.parse(String json)
Parse JSON to
Document. |
| Modifier and Type | Method and Description |
|---|---|
static MultiGetItem<Document> |
DocumentAdapters.from(org.elasticsearch.action.get.MultiGetItemResponse itemResponse)
Creates a
MultiGetItem from a MultiGetItemResponse. |
static List<MultiGetItem<Document>> |
DocumentAdapters.from(org.elasticsearch.action.get.MultiGetResponse source)
Creates a List of
MultiGetItems 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() |
| 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) |
| 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.