Hi all,
I have a field that contains dates (it has date type) and I would like
to make a hierarchical (pivot) facet based on that field.
So I would like to have something like this:
date_of_creation:
|__2014
| |__January
| | |_____01
| | |_____02
| | |_____14
| | |_____21
| |
| |__May
| |_____01
| |_____02
|
|__2013
|__January
| |_____01
| |_____02
| |_____14
| |_____21
|__December
|_____01
|_____02
So this mechanism should simply parse date (e.g. 2014/01/01) to extract
year, month and day and make facets on those elements. Is it a correct
way to make this hierarchical facet?
I guess it is not possible by default, isn't it? ;)
I was thinking if this extraction process could take place on indexing
time. Is it possible to write a filter that could parse a field and
create 3 additional fields from it? Or maybe there is something ready to
use for date parsing?
Any ideas appreciated :)
Regards,
Ola