java.lang.Object
de.hybris.platform.commerceservices.search.solrfacetsearch.provider.entity.SolrPriceRange

public class SolrPriceRange extends Object
Entity to hold price range property stored in Solr.
  • Field Details

  • Method Details

    • getLower

      public SolrPriceRangeEntry getLower()
    • getHigher

      public SolrPriceRangeEntry getHigher()
    • buildSolrPriceRangePairFromProperty

      public static SolrPriceRange buildSolrPriceRangePairFromProperty(String solrProperty)
      Builds a new SolrPriceRange based on a Solr property String that holds the price range.
      Parameters:
      solrProperty - String that contains the price range property in Solr. See buildSolrPropertyFromPriceRows(double, String, double, String).
      Returns:
      a new SolrPriceRange.
    • buildSolrPropertyFromPriceRows

      public static String buildSolrPropertyFromPriceRows(double minPrice, String minCurrency, double maxPrice, String maxCurrency)
      Builds a String to be used in price range Solr property based on low and high prices.
      Parameters:
      minPrice - The lowest price value.
      minCurrency - The currency of the lowest price.
      maxPrice - The highest price value.
      maxCurrency - The currency of the highest price.
      Returns:
      The price range property String.