Class AbstractSolrQueryContributor
java.lang.Object
com.broadleafcommerce.search.provider.solr.AbstractSolrQueryContributor
- All Implemented Interfaces:
- SolrQueryContributor,- org.springframework.core.Ordered
- Direct Known Subclasses:
- ApplicationTrackableSolrQueryContributor,- CatalogTrackableSolrQueryContributor,- CustomerContextTrackableSolrQueryContributor,- DefaultSearchableSolrQueryContributor,- DefaultSolrActiveDateContributor,- DefaultSolrFacetContributor,- DefaultSolrFilterContributor,- DefaultSolrSearchFieldContributor,- DefaultSolrSortContributor,- DefaultSolrSpellCheckContributor,- QueryTypeSolrQueryContributor,- RelevancyRulesSolrQueryContributor,- SandboxTrackableSolrQueryContributor,- SolrScoreSolrQueryContributor,- TenantTrackableSolrQueryContributor,- VendorDiscriminationSolrQueryContributor
Abstract 
SolrQueryContributor which supports easily indicating if a contributor should be
 run or not.- 
Field SummaryFields inherited from interface org.springframework.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidcontribute(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.protected abstract voidcontributeInternal(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.protected abstract booleanshouldContribute(org.apache.solr.client.solrj.SolrQuery solrQuery, com.broadleafcommerce.search.api.domain.SearchRequest searchRequest, org.springframework.data.domain.Pageable page, com.broadleafcommerce.search.core.service.SearchRequestProperties properties, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Determines if this contributor should run.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.broadleafcommerce.search.provider.solr.SolrQueryContributorcontributeOnTypeAhead, getOrder, isTypeAheadRequest
- 
Constructor Details- 
AbstractSolrQueryContributorpublic AbstractSolrQueryContributor()
 
- 
- 
Method Details- 
contributepublic 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) Description copied from interface:SolrQueryContributorCustomize the providedsolrQuerywith some additional behavior.- Specified by:
- contributein interface- SolrQueryContributor
- Parameters:
- solrQuery- The query to customize
- searchRequest- The search query request
- fieldDefinitions- The fields to perform the search on
- page- Page information for page to retrieve for query
- properties- Additional properties for this search
- locale- (optional) the locale of the query
- context- The context information surrounding sandboxing/multitenant state
 
- 
contributeInternalprotected abstract void contributeInternal(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 customize
- searchRequest- The search query request
- fieldDefinitions- The fields to perform the search on
- page- Page information for page to retrieve for query
- properties- Additional properties for this query
- locale- The locale of this search
- context- The context information surrounding sandboxing/multitenant state
 
- 
shouldContributeprotected abstract boolean shouldContribute(org.apache.solr.client.solrj.SolrQuery solrQuery, com.broadleafcommerce.search.api.domain.SearchRequest searchRequest, org.springframework.data.domain.Pageable page, com.broadleafcommerce.search.core.service.SearchRequestProperties properties, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Determines if this contributor should run.- Parameters:
- solrQuery- The query to customize
- searchRequest- The search query request
- page- Page information for page to retrieve for query
- properties- Additional properties for this query.
- context- The context information surrounding sandboxing/multitenant state
- Returns:
- whether this contributor should run
 
 
-