[
https://issues.apache.org/jira/browse/SOLR-7131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
jefferyyuan updated SOLR-7131:
------------------------------
Description:
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
It would be great Solr can support this.
was:
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.
> 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
> Labels: group, search
> Fix For: 5.2, Trunk
>
>
> 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
> It would be great Solr can support this.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]