[ 
https://issues.apache.org/jira/browse/SOLR-258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512776
 ] 

Hoss Man commented on SOLR-258:
-------------------------------

> it might be more precise to specify a single start time, a gap, and a gap 
> "count" 
> (how many "gaps" to include), this will avoid the problem of the last "gap" 
> going past the "end" date.

that would eliminate the DateMathParser value add for ... right now you can 
hardcode "start=NOW/MONTH&end=NOW/MONTH+1MONTH&gap=+1DAY" and get counts per 
day for the current month -- no matter how many days are in the current month 
... if we changed it so a param said how many counts to compute they couldn't 
be specified in the solrconfig and the client would have to be a lot smarter 
(and might as well use explicit date params since it has to know the  current 
month to know the number of days)

> It might be helpful to output the value of "start" also, 
> especially if it was specified as an offset of NOW.

that's already in the output ... each count is labeled by the lower bound of 
it's range, so the label of the first count is the  start .. but i guess 
there's no harm in being explicit about it.


> Date based Facets
> -----------------
>
>                 Key: SOLR-258
>                 URL: https://issues.apache.org/jira/browse/SOLR-258
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Hoss Man
>            Assignee: Hoss Man
>         Attachments: date_facets.patch, date_facets.patch, date_facets.patch, 
> date_facets.patch, date_facets.patch
>
>
> 1) Allow clients to express concepts like...
>     * "give me facet counts per day for every day this month."
>     * "give me facet counts per hour for every hour of today."
>     * "give me facet counts per hour for every hour of a specific day."
>     * "give me facet counts per hour for every hour of a specific day and 
> give me facet counts for the 
>        number of matches before that day, or after that day." 
> 2) Return all data in a way that makes it easy to use to build filter queries 
> on those date ranges.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to