| Package | Description |
|---|---|
| org.springframework.data.elasticsearch.client.elc |
This package contains classes that use the new Elasticsearch client library (co.elastic.clients:elasticsearch-java)
to access Elasticsearch.
|
| org.springframework.data.elasticsearch.core | |
| org.springframework.data.elasticsearch.core.convert | |
| org.springframework.data.elasticsearch.core.index |
Classes related to Elasticsearch index management.
|
| org.springframework.data.elasticsearch.core.query | |
| org.springframework.data.elasticsearch.core.reindex | |
| org.springframework.data.elasticsearch.repository.query |
| Modifier and Type | Class and Description |
|---|---|
class |
NativeQuery
A
Query implementation using query builders from the new
Elasticsearch Client library. |
| Modifier and Type | Method and Description |
|---|---|
Query |
ElasticsearchTemplate.idsQuery(List<String> ids) |
Query |
ReactiveElasticsearchTemplate.idsQuery(List<String> ids) |
Query |
ElasticsearchTemplate.matchAllQuery() |
Query |
ReactiveElasticsearchTemplate.matchAllQuery() |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Flux<? extends AggregationContainer<?>> |
ReactiveElasticsearchTemplate.aggregate(Query query,
Class<?> entityType,
IndexCoordinates index) |
long |
ElasticsearchTemplate.count(Query query,
Class<?> clazz,
IndexCoordinates index) |
ByQueryResponse |
ElasticsearchTemplate.delete(Query query,
Class<?> clazz,
IndexCoordinates index) |
reactor.core.publisher.Mono<ByQueryResponse> |
ReactiveElasticsearchTemplate.delete(Query query,
Class<?> entityType,
IndexCoordinates index) |
protected reactor.core.publisher.Mono<Long> |
ReactiveElasticsearchTemplate.doCount(Query query,
Class<?> entityType,
IndexCoordinates index) |
protected reactor.core.publisher.Flux<SearchDocument> |
ReactiveElasticsearchTemplate.doFind(Query query,
Class<?> clazz,
IndexCoordinates index) |
protected <T> reactor.core.publisher.Mono<SearchDocumentResponse> |
ReactiveElasticsearchTemplate.doFindForResponse(Query query,
Class<?> clazz,
IndexCoordinates index) |
<T> List<MultiGetItem<T>> |
ElasticsearchTemplate.multiGet(Query query,
Class<T> clazz,
IndexCoordinates index) |
<T> reactor.core.publisher.Flux<MultiGetItem<T>> |
ReactiveElasticsearchTemplate.multiGet(Query query,
Class<T> clazz,
IndexCoordinates index) |
<T> SearchHits<T> |
ElasticsearchTemplate.search(Query query,
Class<T> clazz,
IndexCoordinates index) |
protected <T> SearchScrollHits<T> |
ElasticsearchTemplate.searchScrollStart(long scrollTimeInMillis,
Query query,
Class<T> clazz,
IndexCoordinates index) |
| Modifier and Type | Method and Description |
|---|---|
<T> List<SearchHits<T>> |
ElasticsearchTemplate.multiSearch(List<? extends Query> queries,
Class<T> clazz,
IndexCoordinates index) |
List<SearchHits<?>> |
ElasticsearchTemplate.multiSearch(List<? extends Query> queries,
List<Class<?>> classes) |
List<SearchHits<?>> |
ElasticsearchTemplate.multiSearch(List<? extends Query> queries,
List<Class<?>> classes,
IndexCoordinates index) |
| Modifier and Type | Method and Description |
|---|---|
Query |
SearchOperations.idsQuery(List<String> ids)
Creates a
Query to find get all documents with given ids. |
Query |
ElasticsearchRestTemplate.idsQuery(List<String> ids) |
Query |
ReactiveElasticsearchTemplate.idsQuery(List<String> ids) |
Query |
ReactiveSearchOperations.idsQuery(List<String> ids)
Creates a
Query to find get all documents with given ids. |
Query |
SearchOperations.matchAllQuery()
Creates a
Query to get all documents. |
Query |
ElasticsearchRestTemplate.matchAllQuery() |
Query |
ReactiveElasticsearchTemplate.matchAllQuery() |
Query |
ReactiveSearchOperations.matchAllQuery()
Creates a
Query to find all documents. |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Flux<? extends AggregationContainer<?>> |
AbstractReactiveElasticsearchTemplate.aggregate(Query query,
Class<?> entityType) |
reactor.core.publisher.Flux<? extends AggregationContainer<?>> |
ReactiveSearchOperations.aggregate(Query query,
Class<?> entityType)
Perform an aggregation specified by the given
query. |
reactor.core.publisher.Flux<AggregationContainer<?>> |
ReactiveElasticsearchTemplate.aggregate(Query query,
Class<?> entityType,
IndexCoordinates index) |
reactor.core.publisher.Flux<? extends AggregationContainer<?>> |
ReactiveSearchOperations.aggregate(Query query,
Class<?> entityType,
IndexCoordinates index)
Perform an aggregation specified by the given
query. |
long |
SearchOperations.count(Query query,
Class<?> clazz)
return number of elements found by given query
|
reactor.core.publisher.Mono<Long> |
AbstractReactiveElasticsearchTemplate.count(Query query,
Class<?> entityType) |
long |
AbstractElasticsearchTemplate.count(Query query,
Class<?> clazz) |
reactor.core.publisher.Mono<Long> |
ReactiveSearchOperations.count(Query query,
Class<?> entityType)
Count the number of documents matching the given
Query. |
long |
SearchOperations.count(Query query,
Class<?> clazz,
IndexCoordinates index)
return number of elements found by given query
|
reactor.core.publisher.Mono<Long> |
AbstractReactiveElasticsearchTemplate.count(Query query,
Class<?> entityType,
IndexCoordinates index) |
long |
ElasticsearchRestTemplate.count(Query query,
Class<?> clazz,
IndexCoordinates index) |
reactor.core.publisher.Mono<Long> |
ReactiveSearchOperations.count(Query query,
Class<?> entityType,
IndexCoordinates index)
Count the number of documents matching the given
Query. |
default long |
SearchOperations.count(Query query,
IndexCoordinates index)
Return number of elements found by given query.
|
ByQueryResponse |
DocumentOperations.delete(Query query,
Class<?> clazz)
Delete all records matching the query.
|
reactor.core.publisher.Mono<ByQueryResponse> |
AbstractReactiveElasticsearchTemplate.delete(Query query,
Class<?> entityType) |
ByQueryResponse |
AbstractElasticsearchTemplate.delete(Query query,
Class<?> clazz) |
reactor.core.publisher.Mono<ByQueryResponse> |
ReactiveDocumentOperations.delete(Query query,
Class<?> entityType)
Delete the documents matching the given
Query extracting index from entity metadata. |
ByQueryResponse |
DocumentOperations.delete(Query query,
Class<?> clazz,
IndexCoordinates index)
Delete all records matching the query.
|
ByQueryResponse |
ElasticsearchRestTemplate.delete(Query query,
Class<?> clazz,
IndexCoordinates index) |
reactor.core.publisher.Mono<ByQueryResponse> |
ReactiveElasticsearchTemplate.delete(Query query,
Class<?> entityType,
IndexCoordinates index) |
reactor.core.publisher.Mono<ByQueryResponse> |
ReactiveDocumentOperations.delete(Query query,
Class<?> entityType,
IndexCoordinates index)
Delete the documents matching the given
Query extracting index from entity metadata. |
protected abstract reactor.core.publisher.Mono<Long> |
AbstractReactiveElasticsearchTemplate.doCount(Query query,
Class<?> entityType,
IndexCoordinates index) |
protected reactor.core.publisher.Mono<Long> |
ReactiveElasticsearchTemplate.doCount(Query query,
Class<?> entityType,
IndexCoordinates index) |
protected reactor.core.publisher.Mono<org.elasticsearch.index.reindex.BulkByScrollResponse> |
ReactiveElasticsearchTemplate.doDeleteBy(Query query,
Class<?> entityType,
IndexCoordinates index) |
protected abstract reactor.core.publisher.Flux<SearchDocument> |
AbstractReactiveElasticsearchTemplate.doFind(Query query,
Class<?> clazz,
IndexCoordinates index) |
protected reactor.core.publisher.Flux<SearchDocument> |
ReactiveElasticsearchTemplate.doFind(Query query,
Class<?> clazz,
IndexCoordinates index) |
protected abstract <T> reactor.core.publisher.Mono<SearchDocumentResponse> |
AbstractReactiveElasticsearchTemplate.doFindForResponse(Query query,
Class<?> clazz,
IndexCoordinates index) |
protected <T> reactor.core.publisher.Mono<SearchDocumentResponse> |
ReactiveElasticsearchTemplate.doFindForResponse(Query query,
Class<?> clazz,
IndexCoordinates index) |
<T> List<MultiGetItem<T>> |
DocumentOperations.multiGet(Query query,
Class<T> clazz)
Execute a multiGet against elasticsearch for the given ids.
|
<T> reactor.core.publisher.Flux<MultiGetItem<T>> |
AbstractReactiveElasticsearchTemplate.multiGet(Query query,
Class<T> clazz) |
<T> List<MultiGetItem<T>> |
AbstractElasticsearchTemplate.multiGet(Query query,
Class<T> clazz) |
<T> reactor.core.publisher.Flux<MultiGetItem<T>> |
ReactiveDocumentOperations.multiGet(Query query,
Class<T> clazz)
Execute a multiGet against elasticsearch for the given ids.
|
<T> List<MultiGetItem<T>> |
DocumentOperations.multiGet(Query query,
Class<T> clazz,
IndexCoordinates index)
Execute a multiGet against elasticsearch for the given ids.
|
<T> List<MultiGetItem<T>> |
ElasticsearchRestTemplate.multiGet(Query query,
Class<T> clazz,
IndexCoordinates index) |
<T> reactor.core.publisher.Flux<MultiGetItem<T>> |
ReactiveElasticsearchTemplate.multiGet(Query query,
Class<T> clazz,
IndexCoordinates index) |
<T> reactor.core.publisher.Flux<MultiGetItem<T>> |
ReactiveDocumentOperations.multiGet(Query query,
Class<T> clazz,
IndexCoordinates index)
Execute a multiGet against elasticsearch for the given ids.
|
<T> reactor.core.publisher.Flux<SearchHit<T>> |
AbstractReactiveElasticsearchTemplate.search(Query query,
Class<?> entityType,
Class<T> returnType) |
<T> reactor.core.publisher.Flux<SearchHit<T>> |
ReactiveSearchOperations.search(Query query,
Class<?> entityType,
Class<T> returnType)
Search the index for entities matching the given
query. |
<T> reactor.core.publisher.Flux<SearchHit<T>> |
AbstractReactiveElasticsearchTemplate.search(Query query,
Class<?> entityType,
Class<T> resultType,
IndexCoordinates index) |
<T> reactor.core.publisher.Flux<SearchHit<T>> |
ReactiveSearchOperations.search(Query query,
Class<?> entityType,
Class<T> resultType,
IndexCoordinates index)
Search the index for entities matching the given
query. |
<T> SearchHits<T> |
SearchOperations.search(Query query,
Class<T> clazz)
Execute the criteria query against elasticsearch and return result as
SearchHits |
<T> SearchHits<T> |
AbstractElasticsearchTemplate.search(Query query,
Class<T> clazz) |
default <T> reactor.core.publisher.Flux<SearchHit<T>> |
ReactiveSearchOperations.search(Query query,
Class<T> entityType)
Search the index for entities matching the given
query. |
<T> SearchHits<T> |
SearchOperations.search(Query query,
Class<T> clazz,
IndexCoordinates index)
Execute the criteria query against elasticsearch and return result as
SearchHits |
<T> SearchHits<T> |
ElasticsearchRestTemplate.search(Query query,
Class<T> clazz,
IndexCoordinates index) |
default <T> reactor.core.publisher.Flux<SearchHit<T>> |
ReactiveSearchOperations.search(Query query,
Class<T> entityType,
IndexCoordinates index)
Search the index for entities matching the given
query. |
<T> reactor.core.publisher.Mono<ReactiveSearchHits<T>> |
AbstractReactiveElasticsearchTemplate.searchForHits(Query query,
Class<?> entityType,
Class<T> resultType) |
<T> reactor.core.publisher.Mono<ReactiveSearchHits<T>> |
ReactiveSearchOperations.searchForHits(Query query,
Class<?> entityType,
Class<T> resultType)
Perform a search and return the
ReactiveSearchHits which contains information about the search results and
which will provide the documents by the ReactiveSearchHits.getSearchHits() method. |
<T> reactor.core.publisher.Mono<ReactiveSearchHits<T>> |
AbstractReactiveElasticsearchTemplate.searchForHits(Query query,
Class<?> entityType,
Class<T> resultType,
IndexCoordinates index) |
<T> reactor.core.publisher.Mono<ReactiveSearchHits<T>> |
ReactiveSearchOperations.searchForHits(Query query,
Class<?> entityType,
Class<T> resultType,
IndexCoordinates index)
Perform a search and return the
ReactiveSearchHits which contains information about the search results and
which will provide the documents by the ReactiveSearchHits.getSearchHits() method. |
default <T> reactor.core.publisher.Mono<ReactiveSearchHits<T>> |
ReactiveSearchOperations.searchForHits(Query query,
Class<T> entityType)
Perform a search and return the
ReactiveSearchHits which contains information about the search results and
which will provide the documents by the ReactiveSearchHits.getSearchHits() method. |
default <T> reactor.core.publisher.Mono<ReactiveSearchHits<T>> |
ReactiveSearchOperations.searchForHits(Query query,
Class<T> entityType,
IndexCoordinates index)
Perform a search and return the
ReactiveSearchHits which contains information about the search results and
which will provide the documents by the ReactiveSearchHits.getSearchHits() method. |
<T> reactor.core.publisher.Mono<SearchPage<T>> |
AbstractReactiveElasticsearchTemplate.searchForPage(Query query,
Class<?> entityType,
Class<T> resultType) |
<T> reactor.core.publisher.Mono<SearchPage<T>> |
ReactiveElasticsearchTemplate.searchForPage(Query query,
Class<?> entityType,
Class<T> resultType) |
<T> reactor.core.publisher.Mono<SearchPage<T>> |
ReactiveSearchOperations.searchForPage(Query query,
Class<?> entityType,
Class<T> resultType)
Search the index for entities matching the given
query. |
<T> reactor.core.publisher.Mono<SearchPage<T>> |
AbstractReactiveElasticsearchTemplate.searchForPage(Query query,
Class<?> entityType,
Class<T> resultType,
IndexCoordinates index) |
<T> reactor.core.publisher.Mono<SearchPage<T>> |
ReactiveElasticsearchTemplate.searchForPage(Query query,
Class<?> entityType,
Class<T> resultType,
IndexCoordinates index) |
<T> reactor.core.publisher.Mono<SearchPage<T>> |
ReactiveSearchOperations.searchForPage(Query query,
Class<?> entityType,
Class<T> resultType,
IndexCoordinates index)
Search the index for entities matching the given
query. |
default <T> reactor.core.publisher.Mono<SearchPage<T>> |
ReactiveSearchOperations.searchForPage(Query query,
Class<T> entityType)
Search the index for entities matching the given
query. |
default <T> reactor.core.publisher.Mono<SearchPage<T>> |
ReactiveSearchOperations.searchForPage(Query query,
Class<T> entityType,
IndexCoordinates index)
Search the index for entities matching the given
query. |
<T> SearchHitsIterator<T> |
SearchOperations.searchForStream(Query query,
Class<T> clazz)
Executes the given
Query against elasticsearch and return result as SearchHitsIterator. |
<T> SearchHitsIterator<T> |
AbstractElasticsearchTemplate.searchForStream(Query query,
Class<T> clazz) |
<T> SearchHitsIterator<T> |
SearchOperations.searchForStream(Query query,
Class<T> clazz,
IndexCoordinates index)
Executes the given
Query against elasticsearch and return result as SearchHitsIterator. |
<T> SearchHitsIterator<T> |
AbstractElasticsearchTemplate.searchForStream(Query query,
Class<T> clazz,
IndexCoordinates index) |
default <T> SearchHit<T> |
SearchOperations.searchOne(Query query,
Class<T> clazz)
Execute the query against elasticsearch and return the first returned object.
|
default <T> SearchHit<T> |
SearchOperations.searchOne(Query query,
Class<T> clazz,
IndexCoordinates index)
Execute the query against elasticsearch and return the first returned object.
|
protected abstract <T> SearchScrollHits<T> |
AbstractElasticsearchTemplate.searchScrollStart(long scrollTimeInMillis,
Query query,
Class<T> clazz,
IndexCoordinates index) |
<T> SearchScrollHits<T> |
ElasticsearchRestTemplate.searchScrollStart(long scrollTimeInMillis,
Query query,
Class<T> clazz,
IndexCoordinates index) |
reactor.core.publisher.Mono<Suggest> |
AbstractReactiveElasticsearchTemplate.suggest(Query query,
Class<?> entityType) |
reactor.core.publisher.Mono<Suggest> |
ReactiveSearchOperations.suggest(Query query,
Class<?> entityType)
Does a suggest query.
|
reactor.core.publisher.Mono<Suggest> |
AbstractReactiveElasticsearchTemplate.suggest(Query query,
Class<?> entityType,
IndexCoordinates index) |
reactor.core.publisher.Mono<Suggest> |
ReactiveSearchOperations.suggest(Query query,
Class<?> entityType,
IndexCoordinates index)
Does a suggest query.
|
| Modifier and Type | Method and Description |
|---|---|
<T> List<SearchHits<T>> |
SearchOperations.multiSearch(List<? extends Query> queries,
Class<T> clazz)
Execute the multi search query against elasticsearch and return result as
List of SearchHits. |
<T> List<SearchHits<T>> |
AbstractElasticsearchTemplate.multiSearch(List<? extends Query> queries,
Class<T> clazz) |
<T> List<SearchHits<T>> |
SearchOperations.multiSearch(List<? extends Query> queries,
Class<T> clazz,
IndexCoordinates index)
Execute the multi search query against elasticsearch and return result as
List of SearchHits. |
<T> List<SearchHits<T>> |
ElasticsearchRestTemplate.multiSearch(List<? extends Query> queries,
Class<T> clazz,
IndexCoordinates index) |
List<SearchHits<?>> |
SearchOperations.multiSearch(List<? extends Query> queries,
List<Class<?>> classes)
Execute the multi search query against elasticsearch and return result as
List of SearchHits. |
List<SearchHits<?>> |
ElasticsearchRestTemplate.multiSearch(List<? extends Query> queries,
List<Class<?>> classes) |
List<SearchHits<?>> |
SearchOperations.multiSearch(List<? extends Query> queries,
List<Class<?>> classes,
IndexCoordinates index)
Execute the multi search query against elasticsearch and return result as
List of SearchHits. |
List<SearchHits<?>> |
ElasticsearchRestTemplate.multiSearch(List<? extends Query> queries,
List<Class<?>> classes,
IndexCoordinates index) |
| Modifier and Type | Method and Description |
|---|---|
void |
ElasticsearchConverter.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. |
void |
MappingElasticsearchConverter.updateQuery(Query query,
Class<?> domainClass) |
| Modifier and Type | Method and Description |
|---|---|
Query |
AliasActionParameters.getFilterQuery() |
| Modifier and Type | Method and Description |
|---|---|
AliasActionParameters.Builder |
AliasActionParameters.Builder.withFilterQuery(Query filterQuery) |
AliasActionParameters.Builder |
AliasActionParameters.Builder.withFilterQuery(Query filterQuery,
Class<?> filterQueryClass) |
| Modifier and Type | Class and Description |
|---|---|
class |
BaseQuery
BaseQuery
|
class |
CriteriaQuery
CriteriaQuery
|
class |
NativeSearchQuery
A query created from Elasticsearch QueryBuilder instances.
|
class |
StringQuery
StringQuery
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Query> |
Query.addSort(Sort sort)
Add
Sort to query |
<T extends Query> |
BaseQuery.addSort(Sort sort) |
<T extends Query> |
Query.setPageable(Pageable pageable)
restrict result to entries on given page.
|
<T extends Query> |
BaseQuery.setPageable(Pageable pageable) |
| Modifier and Type | Method and Description |
|---|---|
static Query |
Query.findAll()
Get a
Query that matches all documents in the index. |
static Query |
CriteriaQuery.fromQuery(CriteriaQuery source) |
Query |
RescorerQuery.getQuery() |
Query |
UpdateQuery.getQuery() |
static Query |
Query.multiGetQuery(Collection<String> ids)
Utility method to get a query for a multiget request
|
static Query |
Query.multiGetQueryWithRouting(List<Query.IdWithRouting> idsWithRouting)
Utility method to get a query for a multiget request
|
| Modifier and Type | Method and Description |
|---|---|
static UpdateQuery.Builder |
UpdateQuery.builder(Query query) |
| Constructor and Description |
|---|
RescorerQuery(Query query) |
| Modifier and Type | Method and Description |
|---|---|
Query |
ReindexRequest.Source.getQuery() |
| Modifier and Type | Method and Description |
|---|---|
ReindexRequest.ReindexRequestBuilder |
ReindexRequest.ReindexRequestBuilder.withSourceQuery(Query query) |
| Modifier and Type | Method and Description |
|---|---|
protected Query |
ReactivePartTreeElasticsearchQuery.createQuery(ElasticsearchParameterAccessor accessor) |
| Modifier and Type | Method and Description |
|---|---|
Object |
ReactiveElasticsearchQueryExecution.execute(Query query,
Class<?> type,
Class<?> targetType,
IndexCoordinates indexCoordinates) |
Object |
ReactiveElasticsearchQueryExecution.ResultProcessingExecution.execute(Query query,
Class<?> type,
Class<?> targetType,
IndexCoordinates indexCoordinates) |
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.