Re: min()/max() on date fields using JSON facets

2016-07-25 Thread Yonik Seeley
On Mon, Jul 25, 2016 at 9:57 AM, Tom Evans wrote: > For the equivalent JSON facet - "{'date.max': 'max(date_published)', > 'date.min': 'min(date_published)'}" - I'm returned this: > > {u'count': 86760, u'date.max': 146836800.0, u'date.min': 129409920.0} > > What do these numbers represent

min()/max() on date fields using JSON facets

2016-07-25 Thread Tom Evans
Hi all I'm trying to replace a use of the stats module with JSON facets in order to calculate the min/max date range of documents in a query. For the same search, "stats.field=date_published" returns this: {u'date_published': {u'count': 86760, u'max': u'2016-07-13T00:00:00Z',