You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Chakra Yeleswarapu (JIRA)" <ji...@apache.org> on 2016/11/18 20:02:58 UTC

[jira] [Commented] (SOLR-9675) Sorting on field in JSON Facet API which is not part of JSON Facet.

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

Chakra Yeleswarapu commented on SOLR-9675:
------------------------------------------

This JIRA helps resolves one of our use cases. Any updates much appreciated.

Thanks

> 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.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org