Example usage for Java org.springframework.data.solr.core.query Query fields, constructors, methods, implement or subclass
The text is from its open source code.
T | addCriteria(Criteria criteria) Append criteria to query. |
T | addFilterQuery(FilterQuery query) add query to filter results Corresponds to fq in solr |
T | addGroupByField(Field field) add the given field to those used for grouping result Corresponds to '' in solr |
T | addProjectionOnField(Field field) add given Field to those included in result. |
T | addSort(Sort sort) Add Sort to query |
Criteria | getCriteria() |
Operator | getDefaultOperator() Get the specified default operator for query expressions, overriding the default operator specified in the schema.xml file. |
String | getDefType() Get the default type of query, if one has been specified. |
List | getFilterQueries() Get filter queries if defined |
List | getGroupByFields() Get group by fields if defined |
GroupOptions | getGroupOptions() |
Long | getOffset() Get number of rows to skip. |
Pageable | getPageRequest() Get page settings if defined. |
List | getProjectionOnFields() Get projection fields if defined |
String | getRequestHandler() Returns the request handler. |
Integer | getRows() Get number of rows to fetch. |
Sort | getSort() |
StatsOptions | getStatsOptions() |
Integer | getTimeAllowed() Return the time (in milliseconds) allowed for a search to finish |
void | setDefaultOperator(Operator operator) Set the default operator q.op for query expressions |
void | setDefType(String defType) Sets the default type to be used by the query. |
T | setPageRequest(Pageable pageable) restrict result to entries on given page. |
void | setRequestHandler(String requestHandler) Sets the request handler. |
T | setRows(Integer rows) Set the number of rows to fetch. |
T | setTimeAllowed(Integer timeAllowed) The time in milliseconds allowed for a search to finish. |