Class BaseQueryBuilder<Q extends BaseQuery,SELF extends BaseQueryBuilder<Q,SELF>>
java.lang.Object
org.springframework.data.elasticsearch.core.query.BaseQueryBuilder<Q,SELF>
- Direct Known Subclasses:
CriteriaQueryBuilder
,NativeQueryBuilder
,NativeSearchQueryBuilder
,StringQueryBuilder
public abstract class BaseQueryBuilder<Q extends BaseQuery,SELF extends BaseQueryBuilder<Q,SELF>>
extends Object
base class for query builders. The different implementations of
Query
should derive from this class and then
offer a constructor that takes their builder as argument and passes this on to the super class.- Since:
- 4.4
- Author:
- Peter-Josef Meisch
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Q
build()
getIds()
float
getRoute()
getSort()
boolean
withFields
(String... fields) withFields
(Collection<String> fields) withHighlightQuery
(HighlightQuery highlightQuery) withIds
(Collection<String> ids) withIndicesBoost
(List<IndexBoost> indicesBoost) withIndicesBoost
(IndexBoost... indicesBoost) withIndicesOptions
(IndicesOptions indicesOptions) withMaxResults
(Integer maxResults) withMinScore
(float minScore) withPageable
(Pageable pageable) withPreference
(String preference) withSourceFilter
(SourceFilter sourceFilter) withTrackScores
(boolean trackScores)
-
Field Details
-
indicesOptions
-
highlightQuery
-
-
Constructor Details
-
BaseQueryBuilder
public BaseQueryBuilder()
-
-
Method Details
-
getPageable
-
getSort
-
getMaxResults
-
getIds
-
getTrackScores
public boolean getTrackScores() -
getIndicesOptions
-
getMinScore
public float getMinScore() -
getPreference
-
getSourceFilter
-
getFields
-
getHighlightQuery
-
getRoute
-
getIndicesBoost
-
withPageable
-
withSort
-
withMaxResults
-
withIds
-
withIds
-
withTrackScores
-
withIndicesOptions
-
withMinScore
-
withPreference
-
withSourceFilter
-
withFields
-
withFields
-
withHighlightQuery
-
withRoute
-
withIndicesBoost
-
withIndicesBoost
-
build
-