You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Munendra S N (Jira)" <ji...@apache.org> on 2019/09/22 06:12:00 UTC
[jira] [Commented] (SOLR-13417) SolrJ's JsonFacetingResponse
mishandles stat-facets on date fields
[ https://issues.apache.org/jira/browse/SOLR-13417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16935224#comment-16935224 ]
Munendra S N commented on SOLR-13417:
-------------------------------------
[^SOLR-13417.patch]
Introduced new map to store stats for all fieldTypes, will deprecate current one from 8x and remove from the master.
Initially, I thought of having different Map for each fields - strings, numbers and date but In stats, except for min/max the returned value is always a number. Hence, {{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: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org