Class NativeSearchQueryBuilder
java.lang.Object
org.springframework.data.elasticsearch.core.query.BaseQueryBuilder<NativeSearchQuery,NativeSearchQueryBuilder>
org.springframework.data.elasticsearch.client.erhlc.NativeSearchQueryBuilder
@Deprecated
public class NativeSearchQueryBuilder
extends BaseQueryBuilder<NativeSearchQuery,NativeSearchQueryBuilder>
Deprecated.
since 5.0
NativeSearchQuery
- Author:
- Rizwan Idrees, Mohsin Husen, Artur Konczak, Mark Paluch, Alen Turkovic, Sascha Woo, Jean-Baptiste Nizet, Martin Choraine, Farid Azaza, Peter-Josef Meisch, Peer Mueller, vdisk, owen.qq
-
Field Summary
Fields inherited from class org.springframework.data.elasticsearch.core.query.BaseQueryBuilder
highlightQuery, idsWithRouting, indicesOptions, pointInTime, requestCache, runtimeFields, scrollTime, trackTotalHitsUpTo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAggregation
(org.elasticsearch.search.aggregations.AbstractAggregationBuilder<?> aggregationBuilder) Deprecated.usewithAggregations(AbstractAggregationBuilder...)
instead.addAggregation
(org.elasticsearch.search.aggregations.PipelineAggregationBuilder pipelineAggregationBuilder) Deprecated.build()
Deprecated.withAggregations
(Collection<org.elasticsearch.search.aggregations.AbstractAggregationBuilder<?>> aggregationBuilders) Deprecated.withAggregations
(org.elasticsearch.search.aggregations.AbstractAggregationBuilder<?>... aggregationBuilders) Deprecated.withCollapseBuilder
(org.elasticsearch.search.collapse.CollapseBuilder collapseBuilder) Deprecated.withCollapseField
(String collapseField) Deprecated.withFilter
(org.elasticsearch.index.query.QueryBuilder filterBuilder) Deprecated.withHighlightBuilder
(org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder highlightBuilder) Deprecated.withHighlightFields
(Collection<org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder.Field> highlightFields) Deprecated.withHighlightFields
(org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder.Field... highlightFields) Deprecated.withIndicesOptions
(IndicesOptions indicesOptions) Deprecated.withPipelineAggregations
(Collection<org.elasticsearch.search.aggregations.PipelineAggregationBuilder> pipelineAggregationBuilders) Deprecated.withPipelineAggregations
(org.elasticsearch.search.aggregations.PipelineAggregationBuilder... pipelineAggregationBuilders) Deprecated.withQuery
(org.elasticsearch.index.query.QueryBuilder queryBuilder) Deprecated.withRescorerQuery
(RescorerQuery rescorerQuery) Deprecated.withScriptField
(ScriptField scriptField) Deprecated.withSearchAfter
(List<Object> searchAfter) Deprecated.withSearchTemplate
(org.elasticsearch.script.mustache.SearchTemplateRequestBuilder searchTemplateBuilder) Deprecated.withSearchType
(org.elasticsearch.action.search.SearchType searchType) Deprecated.withSort
(org.elasticsearch.search.sort.SortBuilder<?> sortBuilder) Deprecated.usewithSorts(SortBuilder...)
instead.withSorts
(Collection<org.elasticsearch.search.sort.SortBuilder<?>> sortBuilders) Deprecated.withSorts
(org.elasticsearch.search.sort.SortBuilder<?>... sortBuilders) Deprecated.withStoredFields
(String... storedFields) Deprecated.withStoredFields
(Collection<String> storedFields) Deprecated.withSuggestBuilder
(org.elasticsearch.search.suggest.SuggestBuilder suggestBuilder) Deprecated.withTimeout
(Duration timeout) Deprecated.withTrackTotalHits
(Boolean trackTotalHits) Deprecated.Methods inherited from class org.springframework.data.elasticsearch.core.query.BaseQueryBuilder
getExplain, getFields, getHighlightQuery, getIds, getIdsWithRouting, getIndicesBoost, getIndicesOptions, getMaxResults, getMinScore, getPageable, getPointInTime, getPreference, getRequestCache, getRescorerQueries, getRoute, getRuntimeFields, getScrollTime, getSearchAfter, getSearchType, getSort, getSourceFilter, getStoredFields, getTimeout, getTrackScores, getTrackTotalHits, getTrackTotalHitsUpTo, withExplain, withFields, withFields, withHighlightQuery, withIds, withIds, withIdsWithRouting, withIndicesBoost, withIndicesBoost, withMaxResults, withMinScore, withPageable, withPointInTime, withPreference, withRequestCache, withRescorerQueries, withRoute, withRuntimeFields, withScrollTime, withSearchType, withSort, withSourceFilter, withStoredFields, withTrackScores, withTrackTotalHitsUpTo
-
Field Details
-
storedFields
Deprecated.
-
-
Constructor Details
-
NativeSearchQueryBuilder
public NativeSearchQueryBuilder()Deprecated.
-
-
Method Details
-
withQuery
Deprecated. -
withFilter
public NativeSearchQueryBuilder withFilter(org.elasticsearch.index.query.QueryBuilder filterBuilder) Deprecated. -
withSort
@Deprecated public NativeSearchQueryBuilder withSort(org.elasticsearch.search.sort.SortBuilder<?> sortBuilder) Deprecated.usewithSorts(SortBuilder...)
instead. -
withSorts
public NativeSearchQueryBuilder withSorts(Collection<org.elasticsearch.search.sort.SortBuilder<?>> sortBuilders) Deprecated.- Since:
- 4.3
-
withSorts
public NativeSearchQueryBuilder withSorts(org.elasticsearch.search.sort.SortBuilder<?>... sortBuilders) Deprecated.- Since:
- 4.3
-
withScriptField
Deprecated. -
withCollapseField
Deprecated. -
withCollapseBuilder
public NativeSearchQueryBuilder withCollapseBuilder(@Nullable org.elasticsearch.search.collapse.CollapseBuilder collapseBuilder) Deprecated.- Since:
- 4.3
-
addAggregation
@Deprecated public NativeSearchQueryBuilder addAggregation(org.elasticsearch.search.aggregations.AbstractAggregationBuilder<?> aggregationBuilder) Deprecated.usewithAggregations(AbstractAggregationBuilder...)
instead. -
withAggregations
public NativeSearchQueryBuilder withAggregations(Collection<org.elasticsearch.search.aggregations.AbstractAggregationBuilder<?>> aggregationBuilders) Deprecated.- Since:
- 4.3
-
withAggregations
public NativeSearchQueryBuilder withAggregations(org.elasticsearch.search.aggregations.AbstractAggregationBuilder<?>... aggregationBuilders) Deprecated.- Since:
- 4.3
-
addAggregation
@Deprecated public NativeSearchQueryBuilder addAggregation(org.elasticsearch.search.aggregations.PipelineAggregationBuilder pipelineAggregationBuilder) Deprecated. -
withPipelineAggregations
public NativeSearchQueryBuilder withPipelineAggregations(Collection<org.elasticsearch.search.aggregations.PipelineAggregationBuilder> pipelineAggregationBuilders) Deprecated.- Since:
- 4.3
-
withPipelineAggregations
public NativeSearchQueryBuilder withPipelineAggregations(org.elasticsearch.search.aggregations.PipelineAggregationBuilder... pipelineAggregationBuilders) Deprecated.- Since:
- 4.3
-
withHighlightBuilder
public NativeSearchQueryBuilder withHighlightBuilder(org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder highlightBuilder) Deprecated. -
withHighlightFields
public NativeSearchQueryBuilder withHighlightFields(org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder.Field... highlightFields) Deprecated. -
withHighlightFields
public NativeSearchQueryBuilder withHighlightFields(Collection<org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder.Field> highlightFields) Deprecated.- Since:
- 4.3
-
withSearchTemplate
public NativeSearchQueryBuilder withSearchTemplate(org.elasticsearch.script.mustache.SearchTemplateRequestBuilder searchTemplateBuilder) Deprecated. -
withStoredFields
Deprecated. -
withStoredFields
Deprecated. -
withSearchType
public NativeSearchQueryBuilder withSearchType(org.elasticsearch.action.search.SearchType searchType) Deprecated. -
withIndicesOptions
Deprecated.- Overrides:
withIndicesOptions
in classBaseQueryBuilder<NativeSearchQuery,
NativeSearchQueryBuilder>
-
withTrackTotalHits
Deprecated.- Overrides:
withTrackTotalHits
in classBaseQueryBuilder<NativeSearchQuery,
NativeSearchQueryBuilder> - Since:
- 4.2
-
withTimeout
Deprecated.- Overrides:
withTimeout
in classBaseQueryBuilder<NativeSearchQuery,
NativeSearchQueryBuilder>
-
withRescorerQuery
Deprecated.- Overrides:
withRescorerQuery
in classBaseQueryBuilder<NativeSearchQuery,
NativeSearchQueryBuilder>
-
withSuggestBuilder
public NativeSearchQueryBuilder withSuggestBuilder(org.elasticsearch.search.suggest.SuggestBuilder suggestBuilder) Deprecated.- Since:
- 4.3
-
withSearchAfter
Deprecated.- Overrides:
withSearchAfter
in classBaseQueryBuilder<NativeSearchQuery,
NativeSearchQueryBuilder>
-
build
Deprecated.- Specified by:
build
in classBaseQueryBuilder<NativeSearchQuery,
NativeSearchQueryBuilder>
-