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, indicesOptions
-
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
getFields, getHighlightQuery, getIds, getIndicesBoost, getIndicesOptions, getMaxResults, getMinScore, getPageable, getPreference, getRoute, getSort, getSourceFilter, getTrackScores, withFields, withFields, withHighlightQuery, withIds, withIds, withIndicesBoost, withIndicesBoost, withMaxResults, withMinScore, withPageable, withPreference, withRoute, withSort, withSourceFilter, withTrackScores
-
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.- Since:
- 4.2
-
withTimeout
Deprecated. -
withRescorerQuery
Deprecated. -
withSuggestBuilder
public NativeSearchQueryBuilder withSuggestBuilder(org.elasticsearch.search.suggest.SuggestBuilder suggestBuilder) Deprecated.- Since:
- 4.3
-
withSearchAfter
Deprecated. -
build
Deprecated.- Specified by:
build
in classBaseQueryBuilder<NativeSearchQuery,
NativeSearchQueryBuilder>
-