Is it possible to facet on date fields and aggregate by day/month/year?

2014-11-16 Thread adfel70
Hi, If my data includes: doc1: date_f: 2014-05-01T00:00:00Z doc2: date_f: 2014-05-02T00:00:00Z doc2: date_f: 2014-06-01T00:00:00Z doc2: date_f: 2014-07-01T00:00:00Z then I can facet on month(date_f) and get 05(2) 06(1) 07(1) or facet on year(date_f) and get 2014(4) Is it supported? --

Re: Is it possible to facet on date fields and aggregate by day/month/year?

2014-11-16 Thread Erick Erickson
Look at the range faceting stuff. It lets you specify a start date, end date and gap. And you can get results for multiple instances on the same field. So you could specify one set of parameters for date_f where the gap was +1MONTH and another on date_f was +1YEAR. See: