public interface Query
Modifier and Type | Field and Description |
---|---|
static Pageable |
DEFAULT_PAGE |
static int |
DEFAULT_PAGE_SIZE |
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(Sort sort)
Add
Sort to query |
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
|
float |
getMinScore()
Get minimum score
|
Pageable |
getPageable()
Get page settings if defined
|
String |
getRoute()
Get route
|
org.elasticsearch.action.search.SearchType |
getSearchType()
Type of search
|
Sort |
getSort() |
List<String> |
getTypes()
Get types to be searched
|
<T extends Query> |
setPageable(Pageable pageable)
restrict result to entries on given page.
|
static final int DEFAULT_PAGE_SIZE
static final Pageable DEFAULT_PAGE
<T extends Query> T setPageable(Pageable pageable)
pageable
- Pageable getPageable()
Sort getSort()
void addIndices(String... indices)
indices
- void addTypes(String... types)
types
- void addFields(String... fields)
fields
- float getMinScore()
Collection<String> getIds()
String getRoute()
org.elasticsearch.action.search.SearchType getSearchType()
Copyright © 2011-2015–2015 Pivotal Software, Inc.. All rights reserved.