Class ProductPricingPredicateQueryContributor

java.lang.Object
com.broadleafcommerce.search.provider.solr.AbstractSolrQueryContributor
com.broadleafcommerce.search.catalog.solr.query.ProductPricingPredicateQueryContributor
All Implemented Interfaces:
com.broadleafcommerce.search.provider.solr.IndexableTypeSolrQueryContributor, com.broadleafcommerce.search.provider.solr.SolrQueryContributor, org.springframework.core.Ordered

public class ProductPricingPredicateQueryContributor extends com.broadleafcommerce.search.provider.solr.AbstractSolrQueryContributor implements com.broadleafcommerce.search.provider.solr.IndexableTypeSolrQueryContributor
Ensures that a field - one that is not expected to be configured via the field metadata - is added to the list of things that need to be returned from Solr.
Author:
Kelly Tisdell (ktisdell)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final String
     

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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
     
    com.broadleafcommerce.search.api.type.IndexableType
     
    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

    contribute, getOrder, isTypeAheadRequest
  • Field Details

    • PRODUCT_PRICING_PREDICATE_FIELD_NAME

      protected static final String PRODUCT_PRICING_PREDICATE_FIELD_NAME
      See Also:
  • Constructor Details

    • ProductPricingPredicateQueryContributor

      public ProductPricingPredicateQueryContributor()
  • 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 class com.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, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      Specified by:
      shouldContribute in class com.broadleafcommerce.search.provider.solr.AbstractSolrQueryContributor
    • contributeOnTypeAhead

      public boolean contributeOnTypeAhead()
      Specified by:
      contributeOnTypeAhead in interface com.broadleafcommerce.search.provider.solr.SolrQueryContributor
    • getIndexableType

      public com.broadleafcommerce.search.api.type.IndexableType getIndexableType()
      Specified by:
      getIndexableType in interface com.broadleafcommerce.search.provider.solr.IndexableTypeSolrQueryContributor