Class RecommendationsSolrQueryContributor
java.lang.Object
com.broadleafcommerce.search.provider.solr.AbstractSolrQueryContributor
com.broadleafcommerce.search.catalog.solr.query.RecommendationsSolrQueryContributor
- All Implemented Interfaces:
com.broadleafcommerce.search.provider.solr.SolrQueryContributor
,org.springframework.core.Ordered
public class RecommendationsSolrQueryContributor
extends com.broadleafcommerce.search.provider.solr.AbstractSolrQueryContributor
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorsConstructorDescriptionRecommendationsSolrQueryContributor
(com.broadleafcommerce.search.core.service.provider.RecommendationProvider recommendationProvider, com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils authenticationUtils, SearchRecommendationProperties recommendationsProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addBoostForRecommendations
(org.apache.solr.client.solrj.SolrQuery solrQuery, com.broadleafcommerce.search.core.service.domain.SearchRecommendation recommendations, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected 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, String locale, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) boolean
protected com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils
protected int
protected com.broadleafcommerce.search.core.service.provider.RecommendationProvider
protected SearchRecommendationProperties
protected String
protected 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, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Methods inherited from class com.broadleafcommerce.search.provider.solr.AbstractSolrQueryContributor
contribute
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.search.provider.solr.SolrQueryContributor
getOrder, isTypeAheadRequest
-
Constructor Details
-
RecommendationsSolrQueryContributor
public RecommendationsSolrQueryContributor(com.broadleafcommerce.search.core.service.provider.RecommendationProvider recommendationProvider, com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils authenticationUtils, SearchRecommendationProperties recommendationsProperties)
-
-
Method Details
-
contributeInternal
protected 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, String locale, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) - Specified by:
contributeInternal
in classcom.broadleafcommerce.search.provider.solr.AbstractSolrQueryContributor
-
addBoostForRecommendations
protected void addBoostForRecommendations(org.apache.solr.client.solrj.SolrQuery solrQuery, com.broadleafcommerce.search.core.service.domain.SearchRecommendation recommendations, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
shouldContribute
protected 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) - Specified by:
shouldContribute
in classcom.broadleafcommerce.search.provider.solr.AbstractSolrQueryContributor
-
contributeOnTypeAhead
public boolean contributeOnTypeAhead() -
getMaxNumberOfRecommendations
protected int getMaxNumberOfRecommendations() -
getRecommendationType
-
getRecommendationProvider
protected com.broadleafcommerce.search.core.service.provider.RecommendationProvider getRecommendationProvider() -
getAuthenticationUtils
protected com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils getAuthenticationUtils() -
getRecommendationsProperties
-