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.
Classes related to Elasticsearch index management.
classes to define highlight settings parameters of a query
-
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 TypeMethodDescriptionFlux<? extends AggregationContainer<?>>ReactiveElasticsearchTemplate.aggregate(Query query, Class<?> entityType, IndexCoordinates index) longElasticsearchTemplate.count(Query query, Class<?> clazz, IndexCoordinates index) ReactiveElasticsearchTemplate.doCount(Query query, Class<?> entityType, IndexCoordinates index) protected Flux<SearchDocument>ReactiveElasticsearchTemplate.doFind(Query query, Class<?> clazz, IndexCoordinates index) protected <T> 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> 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.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 TypeMethodDescriptionFlux<? extends AggregationContainer<?>>Flux<? extends AggregationContainer<?>>Perform an aggregation specified by the givenquery.Flux<? extends AggregationContainer<?>>ReactiveSearchOperations.aggregate(Query query, Class<?> entityType, IndexCoordinates index) Perform an aggregation specified by the givenquery.longAbstractReactiveElasticsearchTemplate.count(Query query, Class<?> entityType, IndexCoordinates index) Count the number of documents matching the givenQuery.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.AbstractReactiveElasticsearchTemplate.doCount(Query query, Class<?> entityType, IndexCoordinates index) protected abstract Flux<SearchDocument>AbstractReactiveElasticsearchTemplate.doFind(Query query, Class<?> clazz, IndexCoordinates index) protected abstract <T> Mono<SearchDocumentResponse>AbstractReactiveElasticsearchTemplate.doFindForResponse(Query query, Class<?> clazz, IndexCoordinates index) <T> List<MultiGetItem<T>><T> 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> Flux<MultiGetItem<T>>Execute a multiGet against elasticsearch for the given ids.<T> Flux<MultiGetItem<T>>ReactiveDocumentOperations.multiGet(Query query, Class<T> clazz, IndexCoordinates index) Execute a multiGet against elasticsearch for the given ids.<T> SearchHits<T>AbstractReactiveElasticsearchTemplate.search(Query query, Class<?> entityType, Class<T> resultType, IndexCoordinates index) Search the index for entities matching the givenquery.ReactiveSearchOperations.search(Query query, Class<?> entityType, Class<T> resultType, IndexCoordinates index) Search the index for entities matching the givenquery.Search the index for entities matching the givenquery.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> Mono<ReactiveSearchHits<T>>AbstractReactiveElasticsearchTemplate.searchForHits(Query query, Class<?> entityType, Class<T> resultType) <T> Mono<ReactiveSearchHits<T>>AbstractReactiveElasticsearchTemplate.searchForHits(Query query, Class<?> entityType, Class<T> resultType, IndexCoordinates index) <T> 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> 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> 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> 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> Mono<SearchPage<T>>AbstractReactiveElasticsearchTemplate.searchForPage(Query query, Class<?> entityType, Class<T> resultType) <T> Mono<SearchPage<T>>AbstractReactiveElasticsearchTemplate.searchForPage(Query query, Class<?> entityType, Class<T> resultType, IndexCoordinates index) <T> Mono<SearchPage<T>>ReactiveSearchOperations.searchForPage(Query query, Class<?> entityType, Class<T> resultType) Search the index for entities matching the givenquery.<T> Mono<SearchPage<T>>ReactiveSearchOperations.searchForPage(Query query, Class<?> entityType, Class<T> resultType, IndexCoordinates index) Search the index for entities matching the givenquery.default <T> Mono<SearchPage<T>>ReactiveSearchOperations.searchForPage(Query query, Class<T> entityType) Search the index for entities matching the givenquery.default <T> 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) AbstractReactiveElasticsearchTemplate.suggest(Query query, Class<?> entityType, IndexCoordinates index) Does a suggest query.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.mapping
Methods in org.springframework.data.elasticsearch.core.mapping that return QueryMethods in org.springframework.data.elasticsearch.core.mapping with parameters of type QueryModifier and TypeMethodDescriptionAlias.Builder.withFilter(Query filter) Query used to limit documents the alias can access. -
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) Order.Nested.getFilter()SqlQuery.getFilter()DeleteQuery.getQuery()HasChildQuery.getQuery()HasParentQuery.getQuery()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 QueryModifier and TypeMethodDescriptionstatic DeleteQuery.Builderstatic UpdateQuery.BuilderQuery that filter documents for the SQL search.Order.Nested.Builder.withFilter(Query filter) Sets the filter query for a nested sort.
Note: This cannot be aCriteriaQuery, as that would be sent as a nested query within the filter, use aNativeQueryorStringQueryinstead.Query that specifies the documents to run on child documents of theHasChildQuery.Builder.typefield.Constructors in org.springframework.data.elasticsearch.core.query with parameters of type QueryModifierConstructorDescriptionNested(String path, Query filter, Integer maxChildren, Order.Nested nested) RescorerQuery(Query query) -
Uses of Query in org.springframework.data.elasticsearch.core.query.highlight
Methods in org.springframework.data.elasticsearch.core.query.highlight that return QueryMethods in org.springframework.data.elasticsearch.core.query.highlight with parameters of type QueryModifier and TypeMethodDescriptionHighlightCommonParameters.HighlightCommonParametersBuilder.withHighlightQuery(Query highlightQuery) -
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) 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)