Class SolrPriceRange
java.lang.Object
de.hybris.platform.commerceservices.search.solrfacetsearch.provider.entity.SolrPriceRange
Entity to hold price range property stored in Solr.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic SolrPriceRangebuildSolrPriceRangePairFromProperty(String solrProperty) Builds a newSolrPriceRangebased on a Solr property String that holds the price range.static StringbuildSolrPropertyFromPriceRows(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.getLower()
-
Field Details
-
SEPARATOR
- See Also:
-
TOKENS
public static final int TOKENS- See Also:
-
-
Method Details
-
getLower
-
getHigher
-
buildSolrPriceRangePairFromProperty
Builds a newSolrPriceRangebased on a Solr property String that holds the price range.- Parameters:
solrProperty- String that contains the price range property in Solr. SeebuildSolrPropertyFromPriceRows(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.
-