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

Munendra S N commented on SOLR-14007:
-------------------------------------

 [^SOLR-14007.patch] 
* Here, percentile format is changed to NamedList irrespective number of 
percentile values specified. This is similar to StatsComponent except one 
change. When there no value, then no percentile is returned instead of 
returning null for each percentile(a test has been added)
* NamedList is chosen in this case as it is self-contained i.e, all percentile 
key and value are available with list, user have to do additional step while 
parsing to match the values(even though values are returned in ordered)
[~ysee...@gmail.com] [~mkhl] could you please review? 

> 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
>            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