Package | Description |
---|---|
org.springframework.data.solr.core |
Provides the classes necessary for Solr support.
|
org.springframework.data.solr.core.query | |
org.springframework.data.solr.repository.query | |
org.springframework.data.solr.repository.support |
Modifier and Type | Method and Description |
---|---|
<T> T |
SolrTemplate.queryForObject(Query query,
Class<T> clazz) |
<T> T |
SolrOperations.queryForObject(Query query,
Class<T> clazz)
Execute the query against solr and return the first returned object
|
<T> Page<T> |
SolrTemplate.queryForPage(Query query,
Class<T> clazz) |
<T> Page<T> |
SolrOperations.queryForPage(Query query,
Class<T> clazz)
Execute the query against solr and retrun result as
Page |
Modifier and Type | Interface and Description |
---|---|
interface |
FacetQuery
Query to be used for faceting.
|
interface |
HighlightQuery |
Modifier and Type | Class and Description |
---|---|
class |
SimpleFacetQuery
Trivial implementation of
FacetQuery |
class |
SimpleHighlightQuery
Trivial implementation of
HighlightQuery extending SimpleQuery . |
class |
SimpleQuery
Full implementation of
Query that allows multiple options like pagination, grouping,... |
Modifier and Type | Method and Description |
---|---|
<T extends Query> |
SimpleQuery.addFilterQuery(FilterQuery filterQuery) |
<T extends Query> |
Query.addFilterQuery(FilterQuery query)
add query to filter results Corresponds to
fq in solr |
<T extends Query> |
SimpleQuery.addGroupByField(Field field) |
<T extends Query> |
Query.addGroupByField(Field field)
add the given field to those used for grouping result Corresponds to '' in solr
|
<T extends Query> |
SimpleQuery.addGroupByField(String fieldname)
add grouping on fieldname
|
<T extends Query> |
SimpleQuery.addProjectionOnField(Field field) |
<T extends Query> |
Query.addProjectionOnField(Field field)
add given Field to those included in result.
|
<T extends Query> |
SimpleQuery.addProjectionOnField(String fieldname) |
<T extends Query> |
SimpleQuery.addProjectionOnFields(Field... fields) |
<T extends Query> |
SimpleQuery.addProjectionOnFields(String... fieldnames) |
<T extends Query> |
SimpleQuery.addSort(Sort sort) |
<T extends Query> |
Query.addSort(Sort sort)
Add
Sort to query |
<T extends Query> |
SimpleQuery.setPageRequest(Pageable pageable) |
<T extends Query> |
Query.setPageRequest(Pageable pageable)
restrict result to entries on given page.
|
<T extends Query> |
SimpleQuery.setTimeAllowed(Integer timeAllowed) |
<T extends Query> |
Query.setTimeAllowed(Integer timeAllowed)
The time in milliseconds allowed for a search to finish.
|
Modifier and Type | Method and Description |
---|---|
static Query |
SimpleQuery.fromQuery(Query source) |
Modifier and Type | Method and Description |
---|---|
static Query |
SimpleQuery.fromQuery(Query source) |
static <T extends SimpleQuery> |
SimpleQuery.fromQuery(Query source,
T destination) |
Modifier and Type | Method and Description |
---|---|
protected Query |
StringBasedSolrQuery.createQuery(SolrParameterAccessor parameterAccessor) |
protected Query |
PartTreeSolrQuery.createQuery(SolrParameterAccessor parameterAccessor) |
protected abstract Query |
AbstractSolrQuery.createQuery(SolrParameterAccessor parameterAccessor) |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractSolrQuery.appendProjection(Query query) |
Modifier and Type | Method and Description |
---|---|
protected long |
SimpleSolrRepository.count(Query query) |
Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.