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 results, it should be quite straight-forward.

And you have not stated the user-level problem you're trying to solve, this
may be an XY problem.

Best,
Erick

On Mon, Sep 23, 2013 at 1:49 PM, go2jun <go2...@gmail.com> wrote:
> Hi, I have solr documents like this:
>
>  <field name="id" type="string" stored="true" multiValued="false"
> indexed="true"/>
>  <field name="name" type="text" stored="true" multiValued="false"
> indexed="true"/>
>  <field name="source_id" type="int" stored="true" multiValued="false"
> indexed="true"/>
>
> I know I can use solr Result Grouping / Field Collapsing to get the top 2
> result by grouping by source_id. Within each groups, documents sorted by
> scroe by query like this:
> http://localhost:8983/solr/select?q=bank&group.field=source_id&group=true&group.limit=2&group.main=true&sort=score
>
> My question is:
>
> 1. Is it possible to sort overall documents after I do above grouping?
> 2. Is there any other ways to implement above functions(by using solr
> functions directly)?
> 3. Is it possible to implement this by writing java code something like
> customized request handler to do this?
>
> Thanks in advance,
>
> Jun
>
>
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/How-to-sort-over-all-documents-by-score-after-Result-Grouping-Field-Collapsing-tp4091593.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to