Re: How to sort over all documents by score after Result Grouping / Field Collapsing

2013-09-25 Thread Erick Erickson
Nope, there's nothing in Solr that does this for you already, you need to do something custom. You could write a component that did this as the last step of writing the data to the client, but that just moves the action from your front-end to custom code in Solr that you have to maintain too, so I

Re: How to sort over all documents by score after Result Grouping / Field Collapsing

2013-09-24 Thread go2jun
Thanks Erick for your response. My goal is 1. try to search from solr. In the search result, we would like show no more than two results from the same source id. 2. For the search results, we would like all these results sorted by their score. So If I use solr result grouping to get the top two r

Re: How to sort over all documents by score after Result Grouping / Field Collapsing

2013-09-24 Thread Erick Erickson
It's not clear what you're trying to do. Do you want to un-group the results? By that I mean are you trying to take the grouped results you get back and display them in one flat list ordered by score? If that's the case, the simplest thing to do would be to do this on the application side with the