Try facet.mincount=1.   It will still apply to range facets.    

-----Original Message-----
From: JoeSmith [mailto:fidw...@gmail.com] 
Sent: Monday, July 13, 2015 5:56 PM
To: solr-user
Subject: Range Facet queries for date ranges with with non-constant gaps

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?

*************************************************************************
This e-mail may contain confidential or privileged information.
If you are not the intended recipient, please notify the sender immediately and 
then delete it.

TIAA-CREF
*************************************************************************

Reply via email to