public class SolrQueryMethod extends QueryMethod
QueryMethod taking care of Query| Constructor and Description |
|---|
SolrQueryMethod(Method method,
RepositoryMetadata metadata,
ProjectionFactory factory,
SolrEntityInformationCreator solrInformationCreator) |
getDomainClass, getEntityInformation, getName, getResultProcessor, getReturnedObjectType, isCollectionQuery, isModifyingQuery, isPageQuery, isQueryForEntity, isSliceQuery, isStreamQuery, toStringpublic SolrQueryMethod(Method method, RepositoryMetadata metadata, ProjectionFactory factory, SolrEntityInformationCreator solrInformationCreator)
public boolean hasAnnotatedQuery()
Query.value() is not blankpublic boolean hasQueryAnnotation()
Query is not blankpublic boolean hasAnnotatedNamedQueryName()
Query.name() is not blankpublic boolean hasProjectionFields()
Query.fields() is not emptypublic List<String> getProjectionFields()
Query.fields() is emptypublic Integer getTimeAllowed()
Query.timeAllowed() is null or negativepublic boolean isFacetQuery()
hasFacetFields() or hasFacetQueries()public boolean hasFacetFields()
Facet.fields() is not emptypublic boolean hasPivotFields()
Facet#pivotFields() is not emptypublic List<String> getFacetFields()
Facet.fields() is emptypublic List<String> getFacetQueries()
Facet.queries() is emptypublic boolean hasFacetQueries()
Facet.queries() is not emptypublic Integer getFacetLimit()
Facet.limit()public Integer getFacetMinCount()
Facet.minCount()public String getFacetPrefix()
Facet.prefix()public boolean hasStatsDefinition()
Statspublic boolean isFieldStatsCountDistinctEnable()
public List<String> getFieldStats()
Stats.value()public List<String> getStatsFacets()
Stats.facets()public Map<String,String[]> getStatsSelectiveFacets()
Stats.selective()public Collection<String> getStatsSelectiveCountDistinctFields()
Stats.selective()public boolean hasFilterQuery()
Query.filters() is not emptypublic boolean isDeleteQuery()
Query.delete()public boolean isHighlightQuery()
Highlight is presentpublic List<String> getHighlightFieldNames()
Highlight.fields() is emptypublic String getHighlightQuery()
Highlight.query() is blankpublic Integer getHighlighSnipplets()
Highlight.snipplets() or null if negativepublic Integer getHighlightFragsize()
Highlight.fragsize() or null if negativepublic String getHighlightFormatter()
Highlight.formatter() or null if blankpublic String getHighlightPrefix()
Highlight.prefix() or null if blankpublic String getHighlightPostfix()
Highlight.postfix() or null if blankpublic boolean hasHighlightFields()
Highlight.fields() is not emptypublic Query.Operator getDefaultOperator()
Query.defaultOperator() or
Query.Operator.NONE if not setpublic String getDefType()
Query.defType() not setpublic String getRequestHandler()
Query.requestHandler() not setpublic Spellcheck getSpellcheckAnnotation()
public boolean hasSpellcheck()
public SpellcheckOptions getSpellcheckOptions()
public String getNamedQueryName()
getNamedQueryName in class QueryMethodprotected SolrParameters createParameters(Method method)
createParameters in class QueryMethodpublic SolrParameters getParameters()
getParameters in class QueryMethodCopyright © 2011-2015–2017 Pivotal Software, Inc.. All rights reserved.