public interface Query extends SolrDataQuery
Modifier and Type | Interface and Description |
---|---|
static class |
Query.Operator
Operator to be used for
q.op |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PAGE_SIZE |
Modifier and Type | Method and Description |
---|---|
<T extends Query> |
addFilterQuery(FilterQuery query)
add query to filter results Corresponds to 'fq' in solr
|
<T extends Query> |
addGroupByField(Field field)
add the given field to those used for grouping result Corresponds to '' in solr
|
<T extends Query> |
addProjectionOnField(Field field)
add given Field to those included in result.
|
<T extends Query> |
addSort(Sort sort)
Add
Sort to query |
Query.Operator |
getDefaultOperator()
Get the specified default operator for query expressions, overriding the default operator specified in the
schema.xml file.
|
List<FilterQuery> |
getFilterQueries()
Get filter queries if defined
|
List<Field> |
getGroupByFields()
Get group by fields if defined
|
Pageable |
getPageRequest()
Get page settings if defined
|
List<Field> |
getProjectionOnFields()
Get projection fields if defined
|
Sort |
getSort() |
void |
setDefaultOperator(Query.Operator operator)
Set the default operator
q.op for query expressions |
<T extends Query> |
setPageRequest(Pageable pageable)
restrict result to entries on given page.
|
addCriteria, getCriteria
static final int DEFAULT_PAGE_SIZE
<T extends Query> T addProjectionOnField(Field field)
field
- <T extends Query> T setPageRequest(Pageable pageable)
pageable
- <T extends Query> T addGroupByField(Field field)
field
- <T extends Query> T addFilterQuery(FilterQuery query)
query
- List<FilterQuery> getFilterQueries()
Pageable getPageRequest()
Sort getSort()
void setDefaultOperator(Query.Operator operator)
q.op
for query expressionsQuery.Operator getDefaultOperator()
Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.