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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Qbuild()getIds()floatgetSort()booleanwithFields(String... fields) withFields(Collection<String> fields) withIds(Collection<String> ids) withIndicesOptions(IndicesOptions indicesOptions) withMaxResults(Integer maxResults) withMinScore(float minScore) withPageable(Pageable pageable) withPreference(String preference) withSourceFilter(SourceFilter sourceFilter) withTrackScores(boolean trackScores)
-
Field Details
-
indicesOptions
-
-
Constructor Details
-
BaseQueryBuilder
public BaseQueryBuilder()
-
-
Method Details
-
getPageable
-
getSort
-
getMaxResults
-
getIds
-
getTrackScores
public boolean getTrackScores() -
getIndicesOptions
-
getMinScore
public float getMinScore() -
getPreference
-
getSourceFilter
-
getFields
-
withPageable
-
withSort
-
withMaxResults
-
withIds
-
withIds
-
withTrackScores
-
withIndicesOptions
-
withMinScore
-
withPreference
-
withSourceFilter
-
withFields
-
withFields
-
build
-