| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
fields |
protected Collection<String> |
ids |
protected List<String> |
indices |
protected org.elasticsearch.action.support.IndicesOptions |
indicesOptions |
protected float |
minScore |
protected org.springframework.data.domain.Pageable |
pageable |
protected String |
route |
protected org.elasticsearch.action.search.SearchType |
searchType |
protected org.springframework.data.domain.Sort |
sort |
protected SourceFilter |
sourceFilter |
protected boolean |
trackScores |
protected List<String> |
types |
DEFAULT_PAGE, DEFAULT_PAGE_SIZE| Constructor and Description |
|---|
StringQuery(String source) |
StringQuery(String source,
org.springframework.data.domain.Pageable pageable) |
StringQuery(String source,
org.springframework.data.domain.Pageable pageable,
org.springframework.data.domain.Sort sort) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFields(String... fields)
Add fields to be added as part of search request
|
void |
addIndices(String... indices)
Add Indices to be added as part of search request
|
<T extends Query> |
addSort(org.springframework.data.domain.Sort sort)
Add
Sort to query |
void |
addSourceFilter(SourceFilter sourceFilter)
Add source filter to be added as part of search request
|
void |
addTypes(String... types)
Add types to be searched
|
List<String> |
getFields()
Get fields to be returned as part of search request
|
Collection<String> |
getIds()
Get Ids
|
List<String> |
getIndices()
Get Indices to be searched
|
org.elasticsearch.action.support.IndicesOptions |
getIndicesOptions()
Get indices options
|
float |
getMinScore()
Get minimum score
|
org.springframework.data.domain.Pageable |
getPageable()
Get page settings if defined
|
String |
getRoute()
Get route
|
org.elasticsearch.action.search.SearchType |
getSearchType()
Type of search
|
org.springframework.data.domain.Sort |
getSort() |
String |
getSource() |
SourceFilter |
getSourceFilter()
Get SourceFilter to be returned to get include and exclude source fields as part of search request.
|
boolean |
getTrackScores()
Get if scores will be computed and tracked, regardless of whether sorting on a field.
|
List<String> |
getTypes()
Get types to be searched
|
void |
setIds(Collection<String> ids) |
void |
setIndicesOptions(org.elasticsearch.action.support.IndicesOptions indicesOptions) |
void |
setMinScore(float minScore) |
<T extends Query> |
setPageable(org.springframework.data.domain.Pageable pageable)
restrict result to entries on given page.
|
void |
setRoute(String route) |
void |
setSearchType(org.elasticsearch.action.search.SearchType searchType) |
void |
setTrackScores(boolean trackScores)
Configures whether to track scores.
|
protected org.springframework.data.domain.Pageable pageable
protected org.springframework.data.domain.Sort sort
protected SourceFilter sourceFilter
protected float minScore
protected Collection<String> ids
protected String route
protected org.elasticsearch.action.search.SearchType searchType
protected org.elasticsearch.action.support.IndicesOptions indicesOptions
protected boolean trackScores
public StringQuery(String source)
public StringQuery(String source, org.springframework.data.domain.Pageable pageable)
public StringQuery(String source, org.springframework.data.domain.Pageable pageable, org.springframework.data.domain.Sort sort)
public String getSource()
public org.springframework.data.domain.Sort getSort()
public org.springframework.data.domain.Pageable getPageable()
QuerygetPageable in interface Querypublic final <T extends Query> T setPageable(org.springframework.data.domain.Pageable pageable)
QuerysetPageable in interface Querypublic void addFields(String... fields)
Querypublic List<String> getFields()
Querypublic List<String> getIndices()
QuerygetIndices in interface Querypublic void addIndices(String... indices)
QueryaddIndices in interface Querypublic void addTypes(String... types)
Querypublic List<String> getTypes()
Querypublic void addSourceFilter(SourceFilter sourceFilter)
QueryaddSourceFilter in interface Querypublic SourceFilter getSourceFilter()
QuerygetSourceFilter in interface Querypublic final <T extends Query> T addSort(org.springframework.data.domain.Sort sort)
QuerySort to querypublic float getMinScore()
QuerygetMinScore in interface Querypublic void setMinScore(float minScore)
public Collection<String> getIds()
Querypublic void setIds(Collection<String> ids)
public void setRoute(String route)
public void setSearchType(org.elasticsearch.action.search.SearchType searchType)
public org.elasticsearch.action.search.SearchType getSearchType()
QuerygetSearchType in interface Querypublic org.elasticsearch.action.support.IndicesOptions getIndicesOptions()
QuerygetIndicesOptions in interface Querypublic void setIndicesOptions(org.elasticsearch.action.support.IndicesOptions indicesOptions)
public boolean getTrackScores()
QuerygetTrackScores in interface Querypublic void setTrackScores(boolean trackScores)
trackScores - Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.