Interface SolrQueryContributor
-
- All Superinterfaces:
org.springframework.core.Ordered
- All Known Subinterfaces:
IndexableTypeSolrQueryContributor
- All Known Implementing Classes:
AbstractSolrQueryContributor,ApplicationTrackableSolrQueryContributor,CatalogTrackableSolrQueryContributor,CustomerContextTrackableSolrQueryContributor,DefaultSolrActiveDateContributor,DefaultSolrFacetContributor,DefaultSolrFilterContributor,DefaultSolrSearchFieldContributor,DefaultSolrSortContributor,DefaultSolrSpellCheckContributor,QueryTypeSolrQueryContributor,RSQLSolrQueryContributor,SandboxTrackableSolrQueryContributor,TenantTrackableSolrQueryContributor,VendorDiscriminationSolrQueryContributor
public interface SolrQueryContributor extends org.springframework.core.OrderedAdds more specific behavior to customize a Solr Query for search.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidcontribute(org.apache.solr.client.solrj.SolrQuery solrQuery, com.broadleafcommerce.search.api.domain.SearchRequest searchRequest, List<com.broadleafcommerce.search.api.domain.FieldDefinition> fieldDefinitions, org.springframework.data.domain.Pageable page, com.broadleafcommerce.search.core.service.SearchRequestProperties properties, String locale, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)Customize the providedsolrQuerywith some additional behavior.default booleancontributeOnTypeAhead()default intgetOrder()Default Spring Bean ordering.default booleanisTypeAheadRequest(com.broadleafcommerce.search.core.service.SearchRequestProperties properties)
-
-
-
Method Detail
-
contribute
void contribute(org.apache.solr.client.solrj.SolrQuery solrQuery, com.broadleafcommerce.search.api.domain.SearchRequest searchRequest, List<com.broadleafcommerce.search.api.domain.FieldDefinition> fieldDefinitions, org.springframework.data.domain.Pageable page, com.broadleafcommerce.search.core.service.SearchRequestProperties properties, @Nullable String locale, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)Customize the providedsolrQuerywith some additional behavior.- Parameters:
solrQuery- The query to customizesearchRequest- The search query requestfieldDefinitions- The fields to perform the search onpage- Page information for page to retrieve for queryproperties- Additional properties for this searchlocale- (optional) the locale of the querycontext- The context information surrounding sandboxing/multitenant state
-
contributeOnTypeAhead
default boolean contributeOnTypeAhead()
- Returns:
- Should this contributor be executed on TypeAhead requests?
-
isTypeAheadRequest
default boolean isTypeAheadRequest(com.broadleafcommerce.search.core.service.SearchRequestProperties properties)
- Parameters:
properties- Additional properties for this search.- Returns:
- true if this is a typeahead request, else false.
-
getOrder
default int getOrder()
Default Spring Bean ordering.- Specified by:
getOrderin interfaceorg.springframework.core.Ordered- Returns:
-
-