Re: sort groups by the sum of the scores of the documents within each group

2014-05-10 Thread Frankcis
se groups based > on the sum score of every subject. > > my pleasure to listen your suggestions. > > > > -- > If you reply to this email, your message will be added to the discussion > below: > > http://lucene.472066.n3.nabble.com/Re-sort

Re: sort groups by the sum of the scores of the documents within each group

2014-05-05 Thread Frankcis
bject, sort these groups based on the sum score of every subject. my pleasure to listen your suggestions. -- View this message in context: http://lucene.472066.n3.nabble.com/Re-sort-groups-by-the-sum-of-the-scores-of-the-documents-within-each-group-tp4134715p4134869.html Sent from the Solr -

Re: sort groups by the sum of the scores of the documents within each group

2014-05-05 Thread Erick Erickson
a score of > .01 and group 2 could have 1 document with a score of 1,000 and group 1 > would sort > first) ,but the function is required by the client, can you tell me the way > how to achieve it ? > > > > -- > View this message in context: > http://lucene.47206

Re: sort groups by the sum of the scores of the documents within each group

2014-05-05 Thread Frankcis
0 and group 1 would sort first) ,but the function is required by the client, can you tell me the way how to achieve it ? -- View this message in context: http://lucene.472066.n3.nabble.com/Re-sort-groups-by-the-sum-of-the-scores-of-the-documents-within-each-group-tp4134715p4134856.html Sent from the

Re: sort groups by the sum of the scores of the documents within each group

2014-05-05 Thread Erick Erickson
"name": "摩托罗拉i5", > "type": "电脑", > "price": 1500, > "id": "f211525f-bc3c-4ea7-aded-1c46a94ecd1c", > "_version_": 1466799766311534600 > } > ] > thank you , Erick, > i want to sort groups based on the sum of documents' scores within each > group, as you said, solr excels at getting the score of single documents, in > solr 4.6, the default sort of group each other depends on the maxScore of > all documents within each group, but the sum of documents' scores, though i > can get the sum of documents' scores by the client program, it's not good > idea, l know that the stats component of solr can statistics the long field, > so I had the idea to use statistic data for score field, but the score is > pse-udo field, the stats.field doesn't support it. In addition, as > scheme.xml displayed, i do group on the elements of a string field(type) > without using participle. > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Re-sort-groups-by-the-sum-of-the-scores-of-the-documents-within-each-group-tp4134715p4134830.html > Sent from the Solr - User mailing list archive at Nabble.com.

Re: sort groups by the sum of the scores of the documents within each group

2014-05-05 Thread Frankcis
on the maxScore of all documents within each group, but the sum of documents' scores, though i can get the sum of documents' scores by the client program, it's not good idea, l know that the stats component of solr can statistics the long field, so I had the idea to use statistic data for score field, but the score is pse-udo field, the stats.field doesn't support it. In addition, as scheme.xml displayed, i do group on the elements of a string field(type) without using participle. -- View this message in context: http://lucene.472066.n3.nabble.com/Re-sort-groups-by-the-sum-of-the-scores-of-the-documents-within-each-group-tp4134715p4134830.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: sort groups by the sum of the scores of the documents within each group

2014-05-05 Thread Erick Erickson
I don't think so. Solr excels at getting the score of single documents, not aggregation. It's not at all clear to me, though, that the sum of documents' scores is a reasonable thing to sort by. Consider grouping on a very common term. You'd never do this, but group on the elements of a text field.