lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jefferyyuan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SOLR-7131) Sort Group Ascendingly(asc_max) by Max Value in Each Group
Date Thu, 19 Feb 2015 20:06:12 GMT
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


Mime
View raw message