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

Joel Bernstein commented on SOLR-14007:
---------------------------------------

I've been giving this some thought lately as it's time to add percentiles to 
the facet Streaming Expression. My primary goal is not performance, but instead 
providing a table like return format. So I was planning on using this syntax 
and not supporting a nested list within a single percentile:
{code:java}
facet(collection, buckets="x", percentile(y, 50), percentile(y, 75), avg(y)) 
{code}
This gives a nice flat response which can be easily visualized and fits nicely 
into a SQL like table.

Probably doesn't make sense for JSON facets directly though as JSON facets is 
not interested in returning table like structures.

> Difference response format for percentile aggregation
> -----------------------------------------------------
>
>                 Key: SOLR-14007
>                 URL: https://issues.apache.org/jira/browse/SOLR-14007
>             Project: Solr
>          Issue Type: Sub-task
>          Components: Facet Module
>            Reporter: Munendra S N
>            Assignee: Munendra S N
>            Priority: Major
>         Attachments: SOLR-14007.patch
>
>
> For percentile,
> In Stats component, the response format for percentile is {{NamedList}} but 
> in JSON facet, the format is either array or single value depending on number 
> of percentiles specified.
> Even if JSON percentile doesn't use NamedList, response format shouldn't 
> change based on number of percentiles



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to