You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2014/03/16 06:00:49 UTC

[jira] [Updated] (SOLR-1733) Allow specification of date output format on date faceting

     [ https://issues.apache.org/jira/browse/SOLR-1733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Smiley updated SOLR-1733:
-------------------------------

    Fix Version/s:     (was: 4.7)
                   4.8

> 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: 4.8
>
>
> 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 was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org