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/11/25 17:56:00 UTC
[jira] [Commented] (SOLR-11706) JSON FacetModule can't compute
stats (min,max,etc...) on multivalued fields
[ https://issues.apache.org/jira/browse/SOLR-11706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16981752#comment-16981752 ]
Munendra S N commented on SOLR-11706:
-------------------------------------
[^SOLR-11706.patch]
This patch contains aggregation support on multi-valued fields.
These are the following aggregations included here: min, max, avg, min, max, sum, sumsq, stddev, variance.
{{percentile}} doesn't yet have support for multi-valued fields (Probably will handle in separate issue)
I have included {{TestJsonFacets}} tests shared above but haven't included StatsComponentTest changes. This is because of following reasons:
* min/max for numeric fields in Stats is always double but in JSON facets, fieldType is respected
* Value type varies for some aggregation. For example, countDistinct is long whereas unique aggregation value is int/long based on single-shard or multi-shard respectively SOLR-11775
* corrected vs uncorrected stddev SOLR-11725
SOLR-12559 is not resolved but I suppose that can be taken up separately/in next phase
[~hossman] [~yseeley@gmail.com] [~mkhl] could you please review this?
Let me know if Github PR is need
> JSON FacetModule can't compute stats (min,max,etc...) on multivalued fields
> ---------------------------------------------------------------------------
>
> Key: SOLR-11706
> URL: https://issues.apache.org/jira/browse/SOLR-11706
> Project: Solr
> Issue Type: Bug
> Components: Facet Module
> Reporter: Chris M. Hostetter
> Priority: Major
> Attachments: SOLR-11706.patch, SOLR-11706.patch
>
>
> While trying to write some tests demonstrating equivalences between the StatsComponent and the JSON FacetModule i discovered that the FacetModules stat functions (min, max, etc...) don't seem to work on multivalued fields.
> Based on the stack traces, i gather the problem is because the FacetModule seems to rely exclusively on using the "Function" parsers to get a value source -- apparently w/o any other method of accumulating numeric stats from multivalued (numeric) DocValues?
--
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