Hi,
Is this simply for returning a date string, or do you really need a full-blown
Date object for your years?
I'd probably go with a "tint" field for the faceting on year, if year is the
lowest date resolution you need.
If you need to convert 2008 to 2008-01-01T00:00:00Z to put into a real "dat
What version of Solr are you using? Because 3.2 (and I believe 3.1) and later
have faceting and range on numeric values, so there would be no need to use
two fields.
And you could then avoid the format thing entirely.
Best
Erick
On Wed, Aug 24, 2011 at 5:53 AM, Oliver Schihin
wrote:
> Hello lis
have u tried in your facet_year index analyzer something like this?
this can theoretically do the trick
2011/8/24 Oliver Schihin
> Hello list
>
> My documents come with a field holding a date, always a year:
> 2008
> In the schema, this content is taken for a field as an integer, and
> it