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

ASF subversion and git services commented on SOLR-13417:
--------------------------------------------------------

Commit b7ce53d0bf3e519c8b285307a3161933097f0d00 in lucene-solr's branch 
refs/heads/branch_8x from Munendra S N
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=b7ce53d ]

SOLR-13417: handle stats on date/str fields in solrj's JSON facet resp

* Except for min/max aggregation in all other cases values woudl be
  number. As for same data/string field, value can vary based on
  aggregation used, capture response in Map<String, Object>


> SolrJ's JsonFacetingResponse mishandles stat-facets on date fields
> ------------------------------------------------------------------
>
>                 Key: SOLR-13417
>                 URL: https://issues.apache.org/jira/browse/SOLR-13417
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrJ
>    Affects Versions: 7.7, 8.0, master (9.0)
>            Reporter: Jason Gerlowski
>            Assignee: Munendra S N
>            Priority: Minor
>         Attachments: SOLR-13417.patch
>
>
> SolrJ has some classes which simplify access to JSON Faceting responses.  
> These classes parse the response and maintain a Map of facet names to their 
> values.  Currently, this section has a bug where it only records stat facets 
> in this Map if the facet value is a {{Number}}.  (When writing this code, I 
> mistakenly assumed that stat functions could be used on date fields).
> We should fix JsonFacetingResponse so that it handles date-based facets 
> correctly.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to