public abstract class BaseQueryBuilder<Q extends BaseQuery,SELF extends BaseQueryBuilder<Q,SELF>> extends Object
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.| Modifier and Type | Field and Description |
|---|---|
protected HighlightQuery |
highlightQuery |
protected IndicesOptions |
indicesOptions |
| Constructor and Description |
|---|
BaseQueryBuilder() |
@Nullable protected IndicesOptions indicesOptions
@Nullable protected HighlightQuery highlightQuery
@Nullable public Collection<String> getIds()
public boolean getTrackScores()
@Nullable public IndicesOptions getIndicesOptions()
public float getMinScore()
@Nullable public SourceFilter getSourceFilter()
@Nullable public HighlightQuery getHighlightQuery()
@Nullable public List<IndexBoost> getIndicesBoost()
public SELF withIds(Collection<String> ids)
public SELF withTrackScores(boolean trackScores)
public SELF withIndicesOptions(IndicesOptions indicesOptions)
public SELF withMinScore(float minScore)
public SELF withSourceFilter(SourceFilter sourceFilter)
public SELF withFields(Collection<String> fields)
public SELF withHighlightQuery(HighlightQuery highlightQuery)
public SELF withIndicesBoost(List<IndexBoost> indicesBoost)
public SELF withIndicesBoost(IndexBoost... indicesBoost)
public abstract Q build()
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.