|
Spring Data Elasticsearch | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.data.elasticsearch.core.query.StringQuery
public class StringQuery
StringQuery
Field Summary | |
---|---|
protected List<String> |
fields
|
protected List<String> |
indices
|
protected Pageable |
pageable
|
protected Sort |
sort
|
protected List<String> |
types
|
Fields inherited from interface org.springframework.data.elasticsearch.core.query.Query |
---|
DEFAULT_PAGE_SIZE |
Constructor Summary | |
---|---|
StringQuery(String source)
|
|
StringQuery(String source,
Pageable pageable)
|
|
StringQuery(String source,
Pageable pageable,
Sort sort)
|
Method Summary | ||
---|---|---|
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 |
|
|
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 |
|
List<String> |
getIndices()
Get Indices to be searched |
|
Pageable |
getPageable()
Get page settings if defined |
|
Sort |
getSort()
|
|
String |
getSource()
|
|
List<String> |
getTypes()
Get types to be searched |
|
|
setPageable(Pageable pageable)
restrict result to entries on given page. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Pageable pageable
protected Sort sort
protected List<String> indices
protected List<String> types
protected List<String> fields
Constructor Detail |
---|
public StringQuery(String source)
public StringQuery(String source, Pageable pageable)
public StringQuery(String source, Pageable pageable, Sort sort)
Method Detail |
---|
public String getSource()
public Sort getSort()
getSort
in interface Query
public Pageable getPageable()
Query
getPageable
in interface Query
public final <T extends Query> T setPageable(Pageable pageable)
Query
setPageable
in interface Query
public void addFields(String... fields)
Query
addFields
in interface Query
public List<String> getFields()
Query
getFields
in interface Query
public List<String> getIndices()
Query
getIndices
in interface Query
public void addIndices(String... indices)
Query
addIndices
in interface Query
public void addTypes(String... types)
Query
addTypes
in interface Query
public List<String> getTypes()
Query
getTypes
in interface Query
public final <T extends Query> T addSort(Sort sort)
Query
Sort
to query
addSort
in interface Query
|
Spring Data Elasticsearch | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |