You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Chris Eldredge (JIRA)" <ji...@apache.org> on 2017/03/09 15:04:38 UTC
[jira] [Created] (SOLR-10258) Facet functions emit date fields as
ticks
Chris Eldredge created SOLR-10258:
-------------------------------------
Summary: Facet functions emit date fields as ticks
Key: SOLR-10258
URL: https://issues.apache.org/jira/browse/SOLR-10258
Project: Solr
Issue Type: Bug
Security Level: Public (Default Security Level. Issues are Public)
Components: faceting
Affects Versions: 5.5.2
Reporter: Chris Eldredge
Priority: Minor
When invoking a facet function in the JSON Facet API, TrieDateField is coerced into a numeric value and the result of the function is emitted as numeric instead of being converted back into a formatted date.
Example:
curl http://localhost:8983/solr/query?q=*:*&json.facet={most_recent:'max(modified)'}
Produces (in part):
"facets":{
"count":38304,
"most_recent":1.489012400831E12}}
The "most_recent" attribute would be more useful if it was converted back to an iso8601 formatted date.
There was a thread discussing this issue in 2016: http://lucene.472066.n3.nabble.com/min-max-on-date-fields-using-JSON-facets-td4288736.html#a4288781
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org