Uses of Interface
org.springframework.data.elasticsearch.core.query.Query
Packages that use Query
Package
Description
This package contains classes that use the new Elasticsearch client library (co.elastic.clients:elasticsearch-java)
to access Elasticsearch.
This package contains classes that use the old Elasticsearch 7 libraries to access Elasticsearch either directly by
using the RestHighLevelClient or indirectly by using code copied from Elasticsearch libraries (reactive
implementation).
Classes related to Elasticsearch index management.
-
Uses of Query in org.springframework.data.elasticsearch.client.elc
Classes in org.springframework.data.elasticsearch.client.elc that implement QueryModifier and TypeClassDescriptionclassAQueryimplementation using query builders from the new Elasticsearch Client library.Methods in org.springframework.data.elasticsearch.client.elc that return QueryModifier and TypeMethodDescriptionNativeQuery.getSpringDataQuery()NativeQueryBuilder.getSpringDataQuery()static QueryQueries.getTermsAggsQuery(String aggsName, String aggsField) ElasticsearchTemplate.matchAllQuery()ReactiveElasticsearchTemplate.matchAllQuery()static QueryQueries.queryWithIds(String... ids) Methods in org.springframework.data.elasticsearch.client.elc with parameters of type QueryModifier and TypeMethodDescriptionreactor.core.publisher.Flux<? extends AggregationContainer<?>>ReactiveElasticsearchTemplate.aggregate(Query query, Class<?> entityType, IndexCoordinates index) longElasticsearchTemplate.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) protected <T> SearchHits<T>ElasticsearchTemplate.doSearch(Query query, Class<T> 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) <T> SearchScrollHits<T>ElasticsearchTemplate.searchScrollStart(long scrollTimeInMillis, Query query, Class<T> clazz, IndexCoordinates index) voidNativeQuery.setSpringDataQuery(Query springDataQuery) Allows to use aQuerywithin a NativeQuery.Method parameters in org.springframework.data.elasticsearch.client.elc with type arguments of type QueryModifier 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, List<IndexCoordinates> indexes) List<SearchHits<?>>ElasticsearchTemplate.multiSearch(List<? extends Query> queries, List<Class<?>> classes, IndexCoordinates index) -
Uses of Query in org.springframework.data.elasticsearch.client.erhlc
Classes in org.springframework.data.elasticsearch.client.erhlc that implement QueryMethods in org.springframework.data.elasticsearch.client.erhlc that return QueryModifier and TypeMethodDescriptionDeprecated.Deprecated.ElasticsearchRestTemplate.matchAllQuery()Deprecated.ReactiveElasticsearchTemplate.matchAllQuery()Deprecated.Methods in org.springframework.data.elasticsearch.client.erhlc with parameters of type QueryModifier and TypeMethodDescriptionreactor.core.publisher.Flux<AggregationContainer<?>>ReactiveElasticsearchTemplate.aggregate(Query query, Class<?> entityType, IndexCoordinates index) Deprecated.longElasticsearchRestTemplate.count(Query query, Class<?> clazz, IndexCoordinates index) Deprecated.ElasticsearchRestTemplate.delete(Query query, Class<?> clazz, IndexCoordinates index) Deprecated.reactor.core.publisher.Mono<ByQueryResponse>ReactiveElasticsearchTemplate.delete(Query query, Class<?> entityType, IndexCoordinates index) Deprecated.protected reactor.core.publisher.Mono<Long>ReactiveElasticsearchTemplate.doCount(Query query, Class<?> entityType, IndexCoordinates index) Deprecated.protected reactor.core.publisher.Mono<org.elasticsearch.index.reindex.BulkByScrollResponse>ReactiveElasticsearchTemplate.doDeleteBy(Query query, Class<?> entityType, IndexCoordinates index) Deprecated.protected reactor.core.publisher.Flux<SearchDocument>ReactiveElasticsearchTemplate.doFind(Query query, Class<?> clazz, IndexCoordinates index) Deprecated.protected <T> reactor.core.publisher.Mono<SearchDocumentResponse>ReactiveElasticsearchTemplate.doFindForResponse(Query query, Class<?> clazz, IndexCoordinates index) Deprecated.<T> List<MultiGetItem<T>>ElasticsearchRestTemplate.multiGet(Query query, Class<T> clazz, IndexCoordinates index) Deprecated.<T> reactor.core.publisher.Flux<MultiGetItem<T>>ReactiveElasticsearchTemplate.multiGet(Query query, Class<T> clazz, IndexCoordinates index) Deprecated.<T> SearchHits<T>ElasticsearchRestTemplate.search(Query query, Class<T> clazz, IndexCoordinates index) Deprecated.<T> reactor.core.publisher.Mono<SearchPage<T>>ReactiveElasticsearchTemplate.searchForPage(Query query, Class<?> entityType, Class<T> resultType) Deprecated.<T> reactor.core.publisher.Mono<SearchPage<T>>ReactiveElasticsearchTemplate.searchForPage(Query query, Class<?> entityType, Class<T> resultType, IndexCoordinates index) Deprecated.<T> SearchScrollHits<T>ElasticsearchRestTemplate.searchScrollStart(long scrollTimeInMillis, Query query, Class<T> clazz, IndexCoordinates index) Deprecated.Method parameters in org.springframework.data.elasticsearch.client.erhlc with type arguments of type QueryModifier and TypeMethodDescription<T> List<SearchHits<T>>ElasticsearchRestTemplate.multiSearch(List<? extends Query> queries, Class<T> clazz, IndexCoordinates index) Deprecated.List<SearchHits<?>>ElasticsearchRestTemplate.multiSearch(List<? extends Query> queries, List<Class<?>> classes) Deprecated.List<SearchHits<?>>ElasticsearchRestTemplate.multiSearch(List<? extends Query> queries, List<Class<?>> classes, List<IndexCoordinates> indexes) Deprecated.List<SearchHits<?>>ElasticsearchRestTemplate.multiSearch(List<? extends Query> queries, List<Class<?>> classes, IndexCoordinates index) Deprecated. -
Uses of Query in org.springframework.data.elasticsearch.core
Methods in org.springframework.data.elasticsearch.core that return QueryModifier and TypeMethodDescriptionCreates aQueryto find get all documents with given ids.Creates aQueryto find get all documents with given ids.ReactiveSearchOperations.matchAllQuery()Creates aQueryto find all documents.SearchOperations.matchAllQuery()Creates aQueryto get all documents.Methods in org.springframework.data.elasticsearch.core with parameters of type QueryModifier and TypeMethodDescriptionreactor.core.publisher.Flux<? extends AggregationContainer<?>>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.longreactor.core.publisher.Mono<Long>reactor.core.publisher.Mono<Long>AbstractReactiveElasticsearchTemplate.count(Query query, Class<?> entityType, 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.longreturn number of elements found by given querylongSearchOperations.count(Query query, Class<?> clazz, IndexCoordinates index) return number of elements found by given querydefault longSearchOperations.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.reactor.core.publisher.Mono<ByQueryResponse>Delete the documents matching the givenQueryextracting index from entity metadata.reactor.core.publisher.Mono<ByQueryResponse>ReactiveDocumentOperations.delete(Query query, Class<?> entityType, IndexCoordinates index) Delete the documents matching the givenQueryextracting index from entity metadata.protected abstract reactor.core.publisher.Mono<Long>AbstractReactiveElasticsearchTemplate.doCount(Query query, Class<?> entityType, IndexCoordinates index) protected abstract reactor.core.publisher.Flux<SearchDocument>AbstractReactiveElasticsearchTemplate.doFind(Query query, Class<?> clazz, IndexCoordinates index) protected abstract <T> reactor.core.publisher.Mono<SearchDocumentResponse>AbstractReactiveElasticsearchTemplate.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> 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> 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> 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 theReactiveSearchHitswhich 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 theReactiveSearchHitswhich 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 theReactiveSearchHitswhich 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 theReactiveSearchHitswhich 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>>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 givenQueryagainst elasticsearch and return result asSearchHitsIterator.<T> SearchHitsIterator<T>SearchOperations.searchForStream(Query query, Class<T> clazz, IndexCoordinates index) Executes the givenQueryagainst 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.abstract <T> SearchScrollHits<T>AbstractElasticsearchTemplate.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.Method parameters in org.springframework.data.elasticsearch.core with type arguments of type QueryModifier and TypeMethodDescription<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) Execute the multi search query against elasticsearch and return result asListofSearchHits.<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 asListofSearchHits.List<SearchHits<?>>SearchOperations.multiSearch(List<? extends Query> queries, List<Class<?>> classes) Execute the multi search query against elasticsearch and return result asListofSearchHits.List<SearchHits<?>>SearchOperations.multiSearch(List<? extends Query> queries, List<Class<?>> classes, List<IndexCoordinates> indexes) Execute the multi search query against elasticsearch and return result asListofSearchHits.List<SearchHits<?>>SearchOperations.multiSearch(List<? extends Query> queries, List<Class<?>> classes, IndexCoordinates index) Execute the multi search query against elasticsearch and return result asListofSearchHits. -
Uses of Query in org.springframework.data.elasticsearch.core.convert
Methods in org.springframework.data.elasticsearch.core.convert with parameters of type QueryModifier and TypeMethodDescriptionvoidElasticsearchConverter.updateQuery(Query query, Class<?> domainClass) Updates aQueryby renaming the property names in the query to the correct mapped field names and the values to the converted values if theElasticsearchPersistentPropertyfor a property has aPropertyValueConverter.voidMappingElasticsearchConverter.updateQuery(Query query, Class<?> domainClass) -
Uses of Query in org.springframework.data.elasticsearch.core.index
Methods in org.springframework.data.elasticsearch.core.index that return QueryModifier and TypeMethodDescriptionAliasActionParameters.getFilterQuery()AliasData.getFilterQuery()Methods in org.springframework.data.elasticsearch.core.index with parameters of type QueryModifier and TypeMethodDescriptionstatic AliasDataAliasData.of(String alias, Query filterQuery, String indexRouting, String searchRouting, Boolean isWriteIndex, Boolean isHidden) AliasActionParameters.Builder.withFilterQuery(Query filterQuery) AliasActionParameters.Builder.withFilterQuery(Query filterQuery, Class<?> filterQueryClass) -
Uses of Query in org.springframework.data.elasticsearch.core.query
Classes in org.springframework.data.elasticsearch.core.query that implement QueryModifier and TypeClassDescriptionclassBaseQueryclassCriteriaQueryclassclassStringQueryMethods in org.springframework.data.elasticsearch.core.query with type parameters of type QueryModifier and TypeMethodDescriptionfinal <T extends Query>
T<T extends Query>
TAddSortto queryfinal <T extends Query>
TBaseQuery.setPageable(Pageable pageable) <T extends Query>
TQuery.setPageable(Pageable pageable) restrict result to entries on given page.Methods in org.springframework.data.elasticsearch.core.query that return QueryModifier and TypeMethodDescriptionstatic QueryQuery.findAll()Get aQuerythat matches all documents in the index.static QueryCriteriaQuery.fromQuery(CriteriaQuery source) RescorerQuery.getQuery()UpdateQuery.getQuery()static QueryQuery.multiGetQuery(Collection<String> ids) Utility method to get a query for a multiget requeststatic QueryQuery.multiGetQueryWithRouting(List<Query.IdWithRouting> idsWithRouting) Utility method to get a query for a multiget requestMethods in org.springframework.data.elasticsearch.core.query with parameters of type QueryConstructors in org.springframework.data.elasticsearch.core.query with parameters of type Query -
Uses of Query in org.springframework.data.elasticsearch.core.reindex
Methods in org.springframework.data.elasticsearch.core.reindex that return QueryMethods in org.springframework.data.elasticsearch.core.reindex with parameters of type QueryModifier and TypeMethodDescriptionReindexRequest.ReindexRequestBuilder.withSourceQuery(Query query) -
Uses of Query in org.springframework.data.elasticsearch.repository.query
Methods in org.springframework.data.elasticsearch.repository.query that return QueryModifier and TypeMethodDescriptionAbstractElasticsearchRepositoryQuery.createQuery(Object[] parameters) protected abstract QueryAbstractElasticsearchRepositoryQuery.createQuery(ParametersParameterAccessor accessor) protected QueryElasticsearchPartQuery.createQuery(ParametersParameterAccessor accessor) protected QueryElasticsearchStringQuery.createQuery(ParametersParameterAccessor parameterAccessor) protected QueryReactivePartTreeElasticsearchQuery.createQuery(ElasticsearchParameterAccessor accessor) Methods in org.springframework.data.elasticsearch.repository.query with parameters of type QueryModifier and TypeMethodDescriptionReactiveElasticsearchQueryExecution.execute(Query query, Class<?> type, Class<?> targetType, IndexCoordinates indexCoordinates) ReactiveElasticsearchQueryExecution.ResultProcessingExecution.execute(Query query, Class<?> type, Class<?> targetType, IndexCoordinates indexCoordinates)