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

Jan Høydahl commented on SOLR-10579:
------------------------------------

Found that this feature was started in 
[https://github.com/apache/solr/blob/main/solr/core/src/java/org/apache/solr/search/ValueSourceParser.java#L1259-L1266]
 with a commented-out stub.

Question: Should we complete the feature or remove the commented stub?

If complete, what stats should it calculate and what should the response be?

I assume that most users still use the non-json based facet API and thus have 
not requested this?

> add multistat aggregation function
> ----------------------------------
>
>                 Key: SOLR-10579
>                 URL: https://issues.apache.org/jira/browse/SOLR-10579
>             Project: Solr
>          Issue Type: New Feature
>          Components: Facet Module
>            Reporter: Yonik Seeley
>            Priority: Major
>
> A multistat() facet function could calculate a bunch of statistics together, 
> rather than having to specify each individually.  This would presumably be 
> more efficient to calculate and shorter to specify.
> number_of_values, min, max, sum, sum_of_squares, variance, stddev
> We would also want to be able to use any of these for sorting or filtering... 
> perhaps with a dot notation.  That could be a separate issue to implement, 
> but we should keep it in mind.
> {code}
> type: terms,
> field: myfield,
> sort : "x.max desc"
> facet: {
>   x : "multistat(numeric_field)"
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to