lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manju16832003 <manju16832...@gmail.com>
Subject Re: get min-max prices as facets
Date Wed, 06 Nov 2013 04:34:06 GMT
I'm not sure if my answer would help you :-).
Usually we do not need to know the min and max prices that our current
database or solr is holding for all the products. Even if you were to that,
would be complex and just make your business logic bigger and tedious. 

Instead, we would know what is the min price and what would be the max
price. Based on this you could create price buckets in solr using 
http://wiki.apache.org/solr/SimpleFacetParameters#Facet_by_Range

In others words, Lets say my site is about selling cars, I would mention min
price could be =0 and max price = 4000000 (4million just logical value)
could be more than that. So price range will fall between those two
logically defined fields. Based on that you could construct solr facet query
range, that Solr will automatically give you the price range (price bucket
what amazon calls it).

Hope that is helpful :-).



--
View this message in context: http://lucene.472066.n3.nabble.com/get-min-max-prices-as-facets-tp4099501p4099523.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message