Allow specification of date output format on date faceting
----------------------------------------------------------

                 Key: SOLR-1733
                 URL: https://issues.apache.org/jira/browse/SOLR-1733
             Project: Solr
          Issue Type: Improvement
          Components: SearchComponents - other
         Environment: my local mac book pro.
            Reporter: Chris A. Mattmann
             Fix For: 1.5


It would be really great if the facet component allowed the specification of 
the date output format, so that e.g., if I wanted to facet by month, I could 
also specify what the resultant date facets look like. In other words, a facet 
query like this:

http://localhost:8993/solr/select/?q=*:*&version=2.2&start=0&rows=146&indent=on&facet=on&facet.date=startdate&facet.date.start=NOW/YEAR-50YEARS&facet.date.end=NOW&facet.date.gap=%2B1MONTH&facet.date.output=yy-MM-dd

Showed output like:

{code:xml}
<lst name="facet_dates">
<lst name="startdate">
<int name="1960-01-01">0</int>
<int name="1960-02-01">1</int>
<int name="1960-03-01">0</int>
<int name="1960-04-01">0</int>
<int name="1960-05-01">2</int>
...
</lst>
</lst>
{code}

Patch forthcoming that implements this.

-- 
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