Class ProductRequiredOptionInfoQueryContributor
java.lang.Object
com.broadleafcommerce.search.provider.solr.AbstractSolrQueryContributor
com.broadleafcommerce.search.catalog.solr.query.ProductRequiredOptionInfoQueryContributor
- All Implemented Interfaces:
com.broadleafcommerce.search.provider.solr.IndexableTypeSolrQueryContributor,com.broadleafcommerce.search.provider.solr.SolrQueryContributor,org.springframework.core.Ordered
public class ProductRequiredOptionInfoQueryContributor
extends com.broadleafcommerce.search.provider.solr.AbstractSolrQueryContributor
implements com.broadleafcommerce.search.provider.solr.IndexableTypeSolrQueryContributor
This component is responsible for addding the required option infos field to the Solr field list
so that it is returned in the search response.
- Since:
- Search Service 2.1.5, Release Train 2.1.5
- Author:
- Nathan Moore (nathandmoore)
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcontributeInternal(@NonNull org.apache.solr.client.solrj.SolrQuery solrQuery, @NonNull com.broadleafcommerce.search.api.domain.SearchRequest searchRequest, @NonNull List<com.broadleafcommerce.search.api.domain.FieldDefinition> fieldDefinitions, @NonNull org.springframework.data.domain.Pageable page, @NonNull com.broadleafcommerce.search.core.service.SearchRequestProperties properties, String locale, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) booleancom.broadleafcommerce.search.api.type.IndexableTypeprotected 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
contribute, getOrder, isTypeAheadRequest
-
Constructor Details
-
ProductRequiredOptionInfoQueryContributor
public ProductRequiredOptionInfoQueryContributor()
-
-
Method Details
-
contributeInternal
protected void contributeInternal(@NonNull @NonNull org.apache.solr.client.solrj.SolrQuery solrQuery, @NonNull @NonNull com.broadleafcommerce.search.api.domain.SearchRequest searchRequest, @NonNull @NonNull List<com.broadleafcommerce.search.api.domain.FieldDefinition> fieldDefinitions, @NonNull @NonNull org.springframework.data.domain.Pageable page, @NonNull @NonNull com.broadleafcommerce.search.core.service.SearchRequestProperties properties, @Nullable String locale, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) - Specified by:
contributeInternalin classcom.broadleafcommerce.search.provider.solr.AbstractSolrQueryContributor
-
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()- Specified by:
contributeOnTypeAheadin interfacecom.broadleafcommerce.search.provider.solr.SolrQueryContributor
-
getIndexableType
public com.broadleafcommerce.search.api.type.IndexableType getIndexableType()- Specified by:
getIndexableTypein interfacecom.broadleafcommerce.search.provider.solr.IndexableTypeSolrQueryContributor
-