Uses of Interface
org.springframework.data.elasticsearch.core.query.Query
Package
Description
This package contains classes that use the new Elasticsearch client library (co.elastic.clients:elasticsearch-java)
to access Elasticsearch.
Classes related to Elasticsearch index management.
-
Uses of Query in org.springframework.data.elasticsearch.client.elc
Modifier and TypeClassDescriptionclass
AQuery
implementation using query builders from the new Elasticsearch Client library.Modifier and TypeMethodDescriptionElasticsearchTemplate.matchAllQuery()
ReactiveElasticsearchTemplate.matchAllQuery()
Modifier and TypeMethodDescriptionreactor.core.publisher.Flux<? extends AggregationContainer<?>>
ReactiveElasticsearchTemplate.aggregate
(Query query, Class<?> entityType, IndexCoordinates index) long
ElasticsearchTemplate.count
(Query query, Class<?> clazz, IndexCoordinates index) 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 TypeMethodDescription<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) -
Uses of Query in org.springframework.data.elasticsearch.core
Modifier and TypeMethodDescriptionCreates aQuery
to find get all documents with given ids.Creates aQuery
to find get all documents with given ids.ElasticsearchRestTemplate.matchAllQuery()
ReactiveElasticsearchTemplate.matchAllQuery()
ReactiveSearchOperations.matchAllQuery()
Creates aQuery
to find all documents.SearchOperations.matchAllQuery()
Creates aQuery
to get all documents.Modifier and TypeMethodDescriptionreactor.core.publisher.Flux<? extends AggregationContainer<?>>
reactor.core.publisher.Flux<AggregationContainer<?>>
ReactiveElasticsearchTemplate.aggregate
(Query query, Class<?> entityType, IndexCoordinates index) reactor.core.publisher.Flux<? extends AggregationContainer<?>>
Perform an aggregation specified by the givenquery
.reactor.core.publisher.Flux<? extends AggregationContainer<?>>
ReactiveSearchOperations.aggregate
(Query query, Class<?> entityType, IndexCoordinates index) Perform an aggregation specified by the givenquery
.long
reactor.core.publisher.Mono<Long>
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>
Count the number of documents matching the givenQuery
.reactor.core.publisher.Mono<Long>
ReactiveSearchOperations.count
(Query query, Class<?> entityType, IndexCoordinates index) Count the number of documents matching the givenQuery
.long
return number of elements found by given querylong
SearchOperations.count
(Query query, Class<?> clazz, IndexCoordinates index) return number of elements found by given querydefault long
SearchOperations.count
(Query query, IndexCoordinates index) Return number of elements found by given query.reactor.core.publisher.Mono<ByQueryResponse>
Delete all records matching the query.DocumentOperations.delete
(Query query, Class<?> clazz, IndexCoordinates index) Delete all records matching the query.ElasticsearchRestTemplate.delete
(Query query, Class<?> clazz, IndexCoordinates index) reactor.core.publisher.Mono<ByQueryResponse>
Delete the documents matching the givenQuery
extracting index from entity metadata.reactor.core.publisher.Mono<ByQueryResponse>
ReactiveDocumentOperations.delete
(Query query, Class<?> entityType, IndexCoordinates index) Delete the documents matching the givenQuery
extracting index from entity metadata.reactor.core.publisher.Mono<ByQueryResponse>
ReactiveElasticsearchTemplate.delete
(Query query, Class<?> entityType, IndexCoordinates index) 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>>
<T> reactor.core.publisher.Flux<MultiGetItem<T>>
<T> List<MultiGetItem<T>>
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>>
Execute a multiGet against elasticsearch for the given ids.<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<MultiGetItem<T>>
ReactiveElasticsearchTemplate.multiGet
(Query query, Class<T> clazz, IndexCoordinates index) <T> SearchHits<T>
<T> reactor.core.publisher.Flux<SearchHit<T>>
<T> reactor.core.publisher.Flux<SearchHit<T>>
AbstractReactiveElasticsearchTemplate.search
(Query query, Class<?> entityType, Class<T> resultType, IndexCoordinates index) <T> SearchHits<T>
ElasticsearchRestTemplate.search
(Query query, Class<T> clazz, IndexCoordinates index) <T> reactor.core.publisher.Flux<SearchHit<T>>
Search the index for entities matching the givenquery
.<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 givenquery
.default <T> reactor.core.publisher.Flux<SearchHit<T>>
Search the index for entities matching the givenquery
.default <T> reactor.core.publisher.Flux<SearchHit<T>>
ReactiveSearchOperations.search
(Query query, Class<T> entityType, IndexCoordinates index) Search the index for entities matching the givenquery
.<T> SearchHits<T>
Execute the criteria query against elasticsearch and return result asSearchHits
<T> SearchHits<T>
SearchOperations.search
(Query query, Class<T> clazz, IndexCoordinates index) Execute the criteria query against elasticsearch and return result asSearchHits
<T> reactor.core.publisher.Mono<ReactiveSearchHits<T>>
AbstractReactiveElasticsearchTemplate.searchForHits
(Query query, Class<?> entityType, Class<T> resultType) <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) Perform a search and return theReactiveSearchHits
which contains information about the search results and which will provide the documents by theReactiveSearchHits.getSearchHits()
method.<T> reactor.core.publisher.Mono<ReactiveSearchHits<T>>
ReactiveSearchOperations.searchForHits
(Query query, Class<?> entityType, Class<T> resultType, IndexCoordinates index) Perform a search and return theReactiveSearchHits
which contains information about the search results and which will provide the documents by theReactiveSearchHits.getSearchHits()
method.default <T> reactor.core.publisher.Mono<ReactiveSearchHits<T>>
ReactiveSearchOperations.searchForHits
(Query query, Class<T> entityType) Perform a search and return theReactiveSearchHits
which contains information about the search results and which will provide the documents by theReactiveSearchHits.getSearchHits()
method.default <T> reactor.core.publisher.Mono<ReactiveSearchHits<T>>
ReactiveSearchOperations.searchForHits
(Query query, Class<T> entityType, IndexCoordinates index) Perform a search and return theReactiveSearchHits
which contains information about the search results and which will provide the documents by theReactiveSearchHits.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>>
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) <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) Search the index for entities matching the givenquery
.<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 givenquery
.default <T> reactor.core.publisher.Mono<SearchPage<T>>
ReactiveSearchOperations.searchForPage
(Query query, Class<T> entityType) Search the index for entities matching the givenquery
.default <T> reactor.core.publisher.Mono<SearchPage<T>>
ReactiveSearchOperations.searchForPage
(Query query, Class<T> entityType, IndexCoordinates index) Search the index for entities matching the givenquery
.<T> SearchHitsIterator<T>
AbstractElasticsearchTemplate.searchForStream
(Query query, Class<T> clazz) <T> SearchHitsIterator<T>
AbstractElasticsearchTemplate.searchForStream
(Query query, Class<T> clazz, IndexCoordinates index) <T> SearchHitsIterator<T>
SearchOperations.searchForStream
(Query query, Class<T> clazz) Executes the givenQuery
against elasticsearch and return result asSearchHitsIterator
.<T> SearchHitsIterator<T>
SearchOperations.searchForStream
(Query query, Class<T> clazz, IndexCoordinates index) Executes the givenQuery
against elasticsearch and return result asSearchHitsIterator
.default <T> SearchHit<T>
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>
reactor.core.publisher.Mono<Suggest>
AbstractReactiveElasticsearchTemplate.suggest
(Query query, Class<?> entityType, IndexCoordinates index) reactor.core.publisher.Mono<Suggest>
Does a suggest query.reactor.core.publisher.Mono<Suggest>
ReactiveSearchOperations.suggest
(Query query, Class<?> entityType, IndexCoordinates index) Does a suggest query.Modifier and TypeMethodDescription<T> List<SearchHits<T>>
AbstractElasticsearchTemplate.multiSearch
(List<? extends Query> queries, Class<T> clazz) <T> List<SearchHits<T>>
ElasticsearchRestTemplate.multiSearch
(List<? extends Query> queries, Class<T> clazz, IndexCoordinates index) List<SearchHits<?>>
ElasticsearchRestTemplate.multiSearch
(List<? extends Query> queries, List<Class<?>> classes) List<SearchHits<?>>
ElasticsearchRestTemplate.multiSearch
(List<? extends Query> queries, List<Class<?>> classes, IndexCoordinates index) <T> List<SearchHits<T>>
SearchOperations.multiSearch
(List<? extends Query> queries, Class<T> clazz) Execute the multi search query against elasticsearch and return result asList
ofSearchHits
.<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 asList
ofSearchHits
.List<SearchHits<?>>
SearchOperations.multiSearch
(List<? extends Query> queries, List<Class<?>> classes) Execute the multi search query against elasticsearch and return result asList
ofSearchHits
.List<SearchHits<?>>
SearchOperations.multiSearch
(List<? extends Query> queries, List<Class<?>> classes, IndexCoordinates index) Execute the multi search query against elasticsearch and return result asList
ofSearchHits
. -
Uses of Query in org.springframework.data.elasticsearch.core.convert
Modifier and TypeMethodDescriptionvoid
ElasticsearchConverter.updateQuery
(Query query, Class<?> domainClass) Updates aQuery
by renaming the property names in the query to the correct mapped field names and the values to the converted values if theElasticsearchPersistentProperty
for a property has aPropertyValueConverter
.void
MappingElasticsearchConverter.updateQuery
(Query query, Class<?> domainClass) -
Uses of Query in org.springframework.data.elasticsearch.core.index
Modifier and TypeMethodDescriptionAliasActionParameters.Builder.withFilterQuery
(Query filterQuery) AliasActionParameters.Builder.withFilterQuery
(Query filterQuery, Class<?> filterQueryClass) -
Uses of Query in org.springframework.data.elasticsearch.core.query
Modifier and TypeClassDescriptionclass
BaseQueryclass
CriteriaQueryclass
A query created from Elasticsearch QueryBuilder instances.class
StringQueryModifier and TypeMethodDescriptionfinal <T extends Query>
T<T extends Query>
TAddSort
to queryfinal <T extends Query>
TBaseQuery.setPageable
(Pageable pageable) <T extends Query>
TQuery.setPageable
(Pageable pageable) restrict result to entries on given page.Modifier and TypeMethodDescriptionstatic Query
Query.findAll()
Get aQuery
that matches all documents in the index.static Query
CriteriaQuery.fromQuery
(CriteriaQuery source) RescorerQuery.getQuery()
UpdateQuery.getQuery()
static Query
Query.multiGetQuery
(Collection<String> ids) Utility method to get a query for a multiget requeststatic Query
Query.multiGetQueryWithRouting
(List<Query.IdWithRouting> idsWithRouting) Utility method to get a query for a multiget request -
Uses of Query in org.springframework.data.elasticsearch.core.reindex
Modifier and TypeMethodDescriptionReindexRequest.ReindexRequestBuilder.withSourceQuery
(Query query) -
Uses of Query in org.springframework.data.elasticsearch.repository.query
Modifier and TypeMethodDescriptionprotected Query
ReactivePartTreeElasticsearchQuery.createQuery
(ElasticsearchParameterAccessor accessor) Modifier and TypeMethodDescriptionReactiveElasticsearchQueryExecution.execute
(Query query, Class<?> type, Class<?> targetType, IndexCoordinates indexCoordinates) ReactiveElasticsearchQueryExecution.ResultProcessingExecution.execute
(Query query, Class<?> type, Class<?> targetType, IndexCoordinates indexCoordinates)