Class NativeQuery
java.lang.Object
org.springframework.data.elasticsearch.core.query.BaseQuery
org.springframework.data.elasticsearch.client.elc.NativeQuery
- All Implemented Interfaces:
Query
A
Query
implementation using query builders from the new
Elasticsearch Client library.- Since:
- 4.4
- Author:
- Peter-Josef Meisch, Sascha Woo, Haibo Liu
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.elasticsearch.core.query.Query
Query.IdWithRouting, Query.PointInTime, Query.SearchType
-
Field Summary
Fields inherited from class org.springframework.data.elasticsearch.core.query.BaseQuery
fields, highlightQuery, ids, idsWithRouting, indicesBoost, indicesOptions, maxResults, minScore, pageable, pointInTime, preference, requestCache, rescorerQueries, route, runtimeFields, scrollTime, searchAfter, searchType, sort, sourceFilter, storedFields, timeout, trackScores, trackTotalHitsUpTo
Fields inherited from interface org.springframework.data.elasticsearch.core.query.Query
DEFAULT_PAGE, DEFAULT_PAGE_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionNativeQuery
(co.elastic.clients.elasticsearch._types.query_dsl.Query query) NativeQuery
(NativeQueryBuilder builder) -
Method Summary
Modifier and TypeMethodDescriptionstatic NativeQueryBuilder
builder()
co.elastic.clients.elasticsearch.core.search.FieldCollapse
co.elastic.clients.elasticsearch._types.query_dsl.Query
List<co.elastic.clients.elasticsearch._types.KnnSearch>
co.elastic.clients.elasticsearch._types.query_dsl.Query
getQuery()
List<co.elastic.clients.elasticsearch._types.SortOptions>
co.elastic.clients.elasticsearch.core.search.Suggester
void
setSpringDataQuery
(Query springDataQuery) Methods inherited from class org.springframework.data.elasticsearch.core.query.BaseQuery
addFields, addRescorerQuery, addRuntimeField, addScriptedField, addSort, addSourceFilter, addStoredFields, getAllowNoIndices, getDocValueFields, getExpandWildcards, getExplain, getFields, getHighlightQuery, getIds, getIdsWithRouting, getIndicesBoost, getIndicesOptions, getMaxResults, getMinScore, getPageable, getPointInTime, getPreference, getReactiveBatchSize, getRequestCache, getRescorerQueries, getRoute, getRuntimeFields, getScriptedFields, getScrollTime, getSearchAfter, getSearchType, getSort, getSourceFilter, getStoredFields, getTimeout, getTrackScores, getTrackTotalHits, getTrackTotalHitsUpTo, isLimiting, queryIsUpdatedByConverter, setDocValueFields, setExplain, setFields, setHighlightQuery, setIds, setIdsWithRouting, setIndicesOptions, setMaxResults, setMinScore, setPageable, setPointInTime, setPreference, setQueryIsUpdatedByConverter, setReactiveBatchSize, setRequestCache, setRescorerQueries, setRoute, setScrollTime, setSearchAfter, setSearchType, setSort, setStoredFields, setTimeout, setTrackScores, setTrackTotalHits, setTrackTotalHitsUpTo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.elasticsearch.core.query.Query
hasScrollTime
-
Constructor Details
-
NativeQuery
-
NativeQuery
-
-
Method Details
-
builder
-
getQuery
-
getFilter
-
getAggregations
-
getSuggester
-
getFieldCollapse
-
getSortOptions
-
getSearchExtensions
-
setSpringDataQuery
- Since:
- 5.1
-
getKnnSearches
- Since:
- 5.3.1
-
getSpringDataQuery
-