All time data without setting facet.date.start at a random past date

I use the following query to retrieve Posts time series data.

q=*:*&facet=true&facet.date=created_at_d&start=0 &f.created_at_d.facet.date.start=2009-06-20T14:05:28Z &f.created_at_d.facet.date.end=2011-07-05T14:05:28Z &f.created_at_d.facet.date.gap=%2B3600SECONDS &fq=type:Post&rows=0&f.created_at_d.facet.mincount=1 &facet.sort=count 

Is there a way to get all the time data without setting facet.date.start to a random past date (say 100 years) ?.

 All time data => from the created_at of the very first Post. 
+4
source share
1 answer

This is a separate request for solr or your db to find this first date, so it is probably easiest to get from the database.

 Post.first(:order => 'created_at ASC').created_at.iso8601 
0
source

All Articles