Home > Back-end >  About solr with grouping sorting problem of query returns the results
About solr with grouping sorting problem of query returns the results

Time:11-29

Such as I now have three items:
Id: 101 price:
Id: 101 price: 50
Id: 102 price: 30
Now I use the id group query, will return with id 101102 two data, then use price asc sort, will be:
Id: 101 price:
Id: 102 price: 30
But if I use price desc sort, will be:
Id: 101 price: 50
Id: 102 price: 30
Solr positive sequence sort is used in each group the smallest value in line, but with each group's largest value when in reverse order, now I want to whether positive sequence in reverse, all make it with the lowest value in each group to sort, seek the great god advice!!!!!

CodePudding user response:

You lifting sequence of sorting by price, you also requires both ascending and descending order in ascending order, don't you think you are too cow force?

CodePudding user response:

You can try in the group. Sort set price asc
  • Related