I am trying to do a range facet query for on date ranges. The query below executes and returns results (almost) as desired for 60DAY buckets.
http://localhost:8983/solr/mykeyspace2.user_data/select?wt=json&fq:id=7465033&q=*:*&rows=0&indent=true&facet=on&facet.range=login_event&facet.range.gap=%2B60DAY&facet.range.start=NOW/YEAR&facet.range.end=NOW/MONTH%2B1MONTH&facet.range.min=1 Some of the buckets return with a count of ‘0’ in the bucket even though the facet.range.min is set to ‘1’. That is not the primary issue though. What I would like to get back are buckets of unevenly spaced gaps. For example, counts for the last 7 days, last 30 days, last 90 days. What would be the best way to accomplish this? And is there something wrong with facet.range.min usage?