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 voidaddBoostForRecommendations(org.apache.solr.client.solrj.SolrQuery solrQuery, com.broadleafcommerce.search.core.service.domain.SearchRecommendation recommendations, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected 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) booleanprotected com.broadleafcommerce.resource.security.utils.service.AuthenticationUtilsprotected intprotected com.broadleafcommerce.search.core.service.provider.RecommendationProviderprotected SearchRecommendationPropertiesprotected Stringprotected 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) Methods inherited from class com.broadleafcommerce.search.provider.solr.AbstractSolrQueryContributor
contributeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
contributeInternalin 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:
shouldContributein 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
-