Frankly, I really don't know how to make that happen. I took a quick
look at the function query stuff (I don't have them all memorized yet)
and I just can't seem to make them bend that way.

I can imagine  writing custom code to make it work but I don't really
know how much effort would be involved. I suspect it would not be
trivial.

What I'd do is go back to the client and ask _them_ why it would be
useful. Along with some estimate for figuring out what was necessary
and let _them_ figure out whether it was worth it. Say a week's worth
of effort to scope the work involved. From my viewpoint, given that
the use of this feature is questionable at best, it's a service to the
client to force them to lay out a clear use-case for this capability
and also give them some kind of cost (in this case, just the cost to
figure out _how_ to do it, not actually do it).

Then they can make a rational decision whether the functionality is
worth it. One outcome for them is to say "yes, our use case is
compelling enough we're willing to pay you to figure out how to make
it happen". Another outcome is for them to say "Oh, if it's not OOB
functionality, it's not worth much effort". Yet a third response is
"You're right, that makes no sense whatsoever, don't bother".

Until and unless you give them the feedback that this is not OOB
functionality, and get them to explain why they think it's valuable
and let them know that it'll likely cost a significant amount, you're
not giving them the information to make a rational decision.

I've just seen way too many features implemented in various projects
that wind up taking a lot of effort without being useful...

There, rant finished.

Best,
Erick

On Mon, May 5, 2014 at 9:37 PM, Frankcis <finalxc...@gmail.com> wrote:
> thank you, Erick, you're right, the maxScore of document within each group is
> more effective than the sum of scores in a group, especially some use-case
> just as your assumption(group 1 could have 10M documents all with 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.472066.n3.nabble.com/Re-sort-groups-by-the-sum-of-the-scores-of-the-documents-within-each-group-tp4134715p4134856.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to