[ 
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] [[email protected]] [~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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to