I haven't done this, but I think your use case is a range facets with
variable bucket sizes. As described here:
http://wiki.apache.org/solr/SimpleFacetParameters#facet.range.gap

Unfortunately, the variable buckets are not implemented yet, and are
just old patches in SOLR-2366 (as linked).

I think the other way was to use renaming output key and do each range
as a separate facet with a single bucket. But the query string may be
very long and convoluted for that.
http://wiki.apache.org/solr/SimpleFacetParameters#key_:_Changing_the_output_key

Regards,
   Alex.
Personal blog: http://blog.outerthoughts.com/
LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
- Time is the quality of nature that keeps events from happening all
at once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD
book)


On Tue, Oct 16, 2012 at 4:31 PM, Spadez <james_will...@hotmail.com> wrote:
> I am using solr and I want to setup two different types of facets on my data.
> The first is date, so I would like it like this:
>
> Posted: Today 3 days 7 days All time
>
> Distance: 5 miles 10 miles 30 miles 100 miles
>
> How should I be setting up faceting? It looks like something I need to edit
> my solr.xml or my schema.xml but it is all very confusing and the help
> documents boggle my mind.
>
> Can someone who has done this before give me a bit of guidance please?
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Newbie-Setting-up-date-and-distance-facets-tp4013936.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to