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 empty@Nullable public Integer getTimeAllowed()
Query.timeAllowed() is null or negativepublic boolean isFacetQuery()
hasFacetFields() or hasFacetQueries()public boolean hasFacetFields()
Facet.fields() is not emptypublic boolean hasPivotFields()
public List<String> getFacetFields()
Facet.fields() is emptypublic List<String> getFacetQueries()
Facet.queries() is emptypublic boolean hasFacetQueries()
Facet.queries() is not empty@Nullable public Integer getFacetLimit()
Facet.limit()@Nullable public Integer getFacetMinCount()
Facet.minCount()@Nullable 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 empty@Nullable public String getHighlightQuery()
Highlight.query() is blank@Nullable public Integer getHighlighSnipplets()
Highlight.snipplets() or null if negative@Nullable public Integer getHighlightFragsize()
Highlight.fragsize() or null if negative@Nullable public String getHighlightFormatter()
Highlight.formatter() or null if blank@Nullable public String getHighlightPrefix()
Highlight.prefix() or null if blank@Nullable public 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 set@Nullable public String getDefType()
Query.defType() not set@Nullable public String getRequestHandler()
Query.requestHandler() not set@Nullable public Spellcheck getSpellcheckAnnotation()
public boolean hasSpellcheck()
@Nullable public SpellcheckOptions getSpellcheckOptions()
public String getNamedQueryName()
getNamedQueryName in class QueryMethodpublic boolean returnsOptional()
Optional.protected SolrParameters createParameters(Method method)
createParameters in class QueryMethodpublic SolrParameters getParameters()
getParameters in class QueryMethodCopyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.