Package | Description |
---|---|
org.springframework.data.solr.core |
Provides the classes necessary for Solr support.
|
org.springframework.data.solr.core.query | |
org.springframework.data.solr.core.query.result | |
org.springframework.data.solr.repository.query | |
org.springframework.data.solr.repository.support |
Modifier and Type | Method and Description |
---|---|
<T> Cursor<T> |
SolrTemplate.queryForCursor(Query query,
Class<T> clazz) |
<T> Cursor<T> |
SolrOperations.queryForCursor(Query query,
Class<T> clazz)
|
<T> GroupPage<T> |
SolrTemplate.queryForGroupPage(Query query,
Class<T> clazz) |
<T> GroupPage<T> |
SolrOperations.queryForGroupPage(Query query,
Class<T> clazz)
Execute the query against solr and return result as
GroupPage |
<T> GroupPage<T> |
SolrTemplate.queryForGroupPage(Query query,
Class<T> clazz,
RequestMethod method) |
<T> GroupPage<T> |
SolrOperations.queryForGroupPage(Query query,
Class<T> clazz,
RequestMethod method)
Execute the query against solr and return result as
GroupPage |
<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> T |
SolrTemplate.queryForObject(Query query,
Class<T> clazz,
RequestMethod method) |
<T> T |
SolrOperations.queryForObject(Query query,
Class<T> clazz,
RequestMethod method)
Execute the query against solr and return the first returned object
|
<T> ScoredPage<T> |
SolrTemplate.queryForPage(Query query,
Class<T> clazz) |
<T> ScoredPage<T> |
SolrOperations.queryForPage(Query query,
Class<T> clazz)
Execute the query against solr and retrun result as
Page |
<T> ScoredPage<T> |
SolrTemplate.queryForPage(Query query,
Class<T> clazz,
RequestMethod method) |
<T> ScoredPage<T> |
SolrOperations.queryForPage(Query query,
Class<T> clazz,
RequestMethod method)
Execute the query against solr and retrun result as
Page |
<T> StatsPage<T> |
SolrTemplate.queryForStatsPage(Query query,
Class<T> clazz) |
<T> StatsPage<T> |
SolrOperations.queryForStatsPage(Query query,
Class<T> clazz)
Execute the query against Solr and return result as
StatsPage . |
<T> StatsPage<T> |
SolrTemplate.queryForStatsPage(Query query,
Class<T> clazz,
RequestMethod method) |
<T> StatsPage<T> |
SolrOperations.queryForStatsPage(Query query,
Class<T> clazz,
RequestMethod method)
Execute the query against Solr and return result as
StatsPage . |
Modifier and Type | Interface and Description |
---|---|
interface |
FacetQuery
Query to be used for faceting.
|
interface |
HighlightQuery |
Modifier and Type | Class and Description |
---|---|
class |
AbstractFacetQueryDecorator
General purpose
FacetQuery decorator. |
class |
AbstractHighlightQueryDecorator
General purpose
HighlightQuery decorator. |
class |
AbstractQueryDecorator
General purpose
Query abstract decorator. |
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> |
AbstractQueryDecorator.addFilterQuery(FilterQuery query) |
<T extends Query> |
SimpleQuery.addGroupByField(Field field)
Deprecated.
|
<T extends Query> |
Query.addGroupByField(Field field)
add the given field to those used for grouping result Corresponds to '' in solr
|
<T extends Query> |
AbstractQueryDecorator.addGroupByField(Field field) |
<T extends Query> |
SimpleQuery.addGroupByField(String fieldname)
Deprecated.
in favor of
GroupOptions |
<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> |
AbstractQueryDecorator.addProjectionOnField(Field field) |
<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> |
AbstractQueryDecorator.addSort(Sort sort) |
<T extends Query> |
SimpleQuery.setGroupOptions(GroupOptions groupOptions) |
<T extends Query> |
Query.setGroupOptions(GroupOptions groupOptions)
Sets
GroupOptions for this Query . |
<T extends Query> |
AbstractQueryDecorator.setGroupOptions(GroupOptions groupOptions) |
<T extends Query> |
SimpleQuery.setOffset(Integer offset) |
<T extends Query> |
Query.setOffset(Integer offset)
Set the number of rows to skip.
|
<T extends Query> |
AbstractQueryDecorator.setOffset(Integer offset) |
<T extends Query> |
SimpleQuery.setPageRequest(Pageable pageable) |
<T extends Query> |
Query.setPageRequest(Pageable pageable)
restrict result to entries on given page.
|
<T extends Query> |
AbstractQueryDecorator.setPageRequest(Pageable pageable) |
<T extends Query> |
SimpleQuery.setRows(Integer rows) |
<T extends Query> |
Query.setRows(Integer rows)
Set the number of rows to fetch.
|
<T extends Query> |
AbstractQueryDecorator.setRows(Integer rows) |
<T extends Query> |
SimpleQuery.setStatsOptions(StatsOptions statsOptions) |
<T extends Query> |
Query.setStatsOptions(StatsOptions statsOptions)
Set
StatsOptions for this Query . |
<T extends Query> |
AbstractQueryDecorator.setStatsOptions(StatsOptions statsOptions) |
<T extends Query> |
SimpleQuery.setTimeAllowed(Integer timeAllowed) |
<T extends Query> |
Query.setTimeAllowed(Integer timeAllowed)
The time in milliseconds allowed for a search to finish.
|
<T extends Query> |
AbstractQueryDecorator.setTimeAllowed(Integer timeAllowed) |
Modifier and Type | Method and Description |
---|---|
static Query |
SimpleQuery.fromQuery(Query source) |
Modifier and Type | Method and Description |
---|---|
List<Query> |
GroupOptions.getGroupByQueries()
List of
Query s to perform grouping by. |
Modifier and Type | Method and Description |
---|---|
GroupOptions |
GroupOptions.addGroupByQuery(Query query)
Adds a group request for a
Query result. |
static Query |
SimpleQuery.fromQuery(Query source) |
static <T extends SimpleQuery> |
SimpleQuery.fromQuery(Query source,
T destination) |
static QueryFunction |
QueryFunction.query(Query query) |
Constructor and Description |
---|
AbstractQueryDecorator(Query query) |
Modifier and Type | Method and Description |
---|---|
GroupResult<T> |
SolrResultPage.getGroupResult(Query query) |
GroupResult<T> |
GroupPage.getGroupResult(Query query)
Get a group result done for the given
Query . |
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-2015–2017 Pivotal Software, Inc.. All rights reserved.