You should use facet.query which gives the number of documents matching the query. For example:
facet.query=rating:[0 TO 0.99]&facet.query=rating:[1 TO 1.99] etc. http://wiki.apache.org/solr/SimpleFacetParameters On Tue, Oct 21, 2008 at 3:12 PM, Vincent Pérès <[EMAIL PROTECTED]>wrote: > > Hello, > > I would like to create a custom facet for a 'rating_facets'. > The rates are like that : 1, 1.2, 5, 5.78 etc. > Is it possible to tell solr to create a 'custom' facet : > [0 to 0.99] is 0 > [ 1 to 1.99] is 1 > etc. (and get them back into xml results with number of results by value) > Or I have to specify this way on my schema.xml? > > Thank you ! > Vincent > -- > View this message in context: > http://www.nabble.com/Create-custom-facets-after-building-index-tp20086166p20086166.html > Sent from the Solr - User mailing list archive at Nabble.com. > > -- Regards, Shalin Shekhar Mangar.