[ https://issues.apache.org/jira/browse/SOLR-9675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Amrit Sarkar resolved SOLR-9675. -------------------------------- Resolution: Not A Problem > Sorting on field in JSON Facet API which is not part of JSON Facet. > ------------------------------------------------------------------- > > Key: SOLR-9675 > URL: https://issues.apache.org/jira/browse/SOLR-9675 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) > Reporter: Amrit Sarkar > Priority: Minor > > Here's a sample example: > There is a requirement to facet on a particular field but sort on another > field which is not part of json facet. > For example, consider schema with fields : sl1, sl2, product_bkgs, gc_2 > Solr query & facet : q=sl1 : ("abc") AND sl2 : ("xyz")&sort=sl1 desc&rows=0 > & json.facet={ > "group_column_level" : > { > "type" : "terms", > "field" : "gc_2", > "offset" : 0, > "limit" :25, > "sort" : { "product_bkgs" : "desc"}, > "facet" : > { > "product_bkgs" :"sum(product_bkgs)" > } > } > } > Sort on product_bkgs is possible but not on sl1 in the facet. > Let me know if anything can be done to achieve the same. > Thanks in advance. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org