Hi, we have a use case where we are trying to create multiple facet ranges 
based on a single field. 

I have successfully aliased the field by using the fl parameter e.g. 
fl=date_decade:date,date_year:date,date_month:date,date_day:date where date is 
the original field and the day_decade etc are the aliases. 

What I am failing to do is to create multiple facet ranges based on these 
aliased fields e.g:

&facet.field={!key=date_month 
ex=date_month}date_month&facet.field={!key=date_day 
ex=date_day}date&facet.range={!key=date_decade 
ex=date_decade}date_decade&facet.range={!key=date_year 
ex=date_year}date_year&f.date_decade.facet.range.start=1600-01-01T00:00:00Z&f.date_decade.facet.range.end=2000-01-01T00:00:00Z&f.date_decade.facet.range.gap=+10YEARS&f.date_year.facet.range.start=1600-01-01T00:00:00Z&f.date_year.facet.range.end=2000-01-01T00:00:00Z&f.date_year.facet.range.gap=+1YEARS"

We’re using Solarium here to generate the query and facet ranges but if we can 
do this in a raw HTTP request, that’s fine. I’m just not sure whether Solr will 
allow us to generate multiple facet ranges based on a single data field. Or am 
I approaching the problem in the wrong way?

Server is Solr 4.1

Any help appreciated

-- 
Dan Field <d...@llgc.org.uk <mailto:d...@llgc.org.uk>>                   
Ffôn/Tel. +44 1970 632 582
Pennaeth Uned Datblygu                        Head of Development Unit
Llyfrgell Genedlaethol Cymru                  National Library of Wales

Reply via email to