You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "jefferyyuan (JIRA)" <ji...@apache.org> on 2015/02/19 21:06:12 UTC

[jira] [Created] (SOLR-7131) Sort Group Ascendingly(asc_max) by Max Value in Each Group

jefferyyuan created SOLR-7131:
---------------------------------

             Summary: Sort Group Ascendingly(asc_max) by Max Value in Each Group
                 Key: SOLR-7131
                 URL: https://issues.apache.org/jira/browse/SOLR-7131
             Project: Solr
          Issue Type: Improvement
          Components: search
            Reporter: jefferyyuan
            Priority: Minor
             Fix For: 5.1


Solr group supports asc and desc on some field:
let's take sort=time asc as an example
In asc mode: groups are sorted by the min value in the group, 
In desc mode, groups are sorted by the max value in the group.

But users may want more:
in asc_max mode, sort group by max(not min) value in the group
==> this should be a common requirement.
Vice verse, in desc_min mode, sort group by min(not max) value in th group.

We have this requirement in our product, and we implemented in some cumbersome way: by create a new kind of FieldComparator: LongAbnormalComparator

I am not we are not alone, and it would be great Solr can support this.



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