This thread spurred me on enough to follow through with the idea i posted 
in SOLR-397 a while back.  I've attached a patch to that issue if you want 
to try it out...

   https://issues.apache.org/jira/browse/SOLR-397

It adds a "facet.date.include" param that supports the following
options: all, lower, upper, edge, outer ...

 * lower = all gap based ranges include their lower bound
 * upper = all gap based ranges include their upper bound
 * edge = the first and last gap ranges include their edge bounds 
   (ie: lower for the first one, upper for the last one) even if the 
   corrisponding upper/lower option is not specified
 * outer = the FacetDateOther.BEFORE and FacetDateOther.AFTER ranges 
   should be inclusive of their bounds, even if the first or last 
   gap ranges already include thouse boundaries.
 * all = shorthand for lower, upper, edge, and outer
 
...for back compat, the defualt is [lower,upper,edge] (ie: the gap based 
ranges include both endpoints, but before & after do not)


-Hoss

Reply via email to