Re: get min-max prices as facets

2013-11-06 Thread manju16832003
Hey Peter, Now I understood your requirement :-). I come across this http://wiki.apache.org/solr/StatsComponent have a look if it helps you :-). -- View this message in context: http://lucene.472066.n3.nabble.com/get-min-max-prices-as-facets-tp4099501p4099737.html Sent from the Solr - User ma

Re: get min-max prices as facets

2013-11-06 Thread Raymond Wiker
As far as I understand, the filter terms (fq parameters) should be automatically cached. On 06 Nov 2013, at 19:08 , PeterKerk wrote: > Hi Raymond, > > Thanks. > This caching of the main query you mention, is that done automatically or do > I have to do something for that? > > > > -- > View

Re: get min-max prices as facets

2013-11-06 Thread PeterKerk
Hi Raymond, Thanks. This caching of the main query you mention, is that done automatically or do I have to do something for that? -- View this message in context: http://lucene.472066.n3.nabble.com/get-min-max-prices-as-facets-tp4099501p4099613.html Sent from the Solr - User mailing list archi

Re: get min-max prices as facets

2013-11-06 Thread Raymond Wiker
One way of getting the min/max values is to fire off two additional queries, using the current query and filter params, a field list ("fl") containing just the field you want to find min/max for, asking for a single hit (rows=1), and sorting by that field - asc in one query, desc in the other. T

Re: get min-max prices as facets

2013-11-06 Thread PeterKerk
Thanks! I know how to fire a range query. However, what I want is to provide the visitor with a range filter. In this range filter the minimum and maximum value are already set to the lowest and highest price of the current resultset. e.g. I sell cars. My cheapest car is 1,000 and the most expensi

Re: get min-max prices as facets

2013-11-05 Thread manju16832003
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 th