splay/solr/Collapse+and+Expand+Results
-
---
Alessandro Benedetti
Search Consultant, R&D Software Engineer, Director
Sease Ltd. - www.sease.io
--
View this message in context:
http://lucene.472066.n3.nabble.com/Grouped-Result-sort-issue-tp4329255p4329784.html
Sent from the So
core of the
> minimum scoring doc of the group.
> sort = score desc -> will always sort the groups by descending score of the
> maximum scoring doc in the group
>
> Cheers
>
>
>
>
> -
> ---
> Alessandro Benedetti
> Search Consultant, R&D S
e of the
maximum scoring doc in the group
Cheers
-
---
Alessandro Benedetti
Search Consultant, R&D Software Engineer, Director
Sease Ltd. - www.sease.io
--
View this message in context:
http://lucene.472066.n3.nabble.com/Grouped-Result-sort-issue-tp4329255p4329468.html
Sent
ostId":"25549",
> "score":0.34190965}]
> }},
> {
> "groupValue":"40",
> "doclist":{"numFound":2,"start":0,"maxScore":0.3283673,"docs":[
> {
> "postId":"30142",
> "score":0.3283673}]
> }},
> {
> "groupValue":"142",
> "doclist":{"numFound":9,"start":0,"maxScore":0.22002561,"docs":[
> {
> "postId":"35000",
> "score":0.22002561}]
> }},
> {
> "groupValue":"189",
> "doclist":{"numFound":1,"start":0,"maxScore":0.09951033,"docs":[
> {
> "postId":"33971",
> "score":0.09951033}]
> }}]}}}
>
>
> On Tue, Apr 11, 2017 at 10:17 PM, Erick Erickson
> wrote:
>
>> the group.sort spec is specified twice in the URL
>>
>> group.sort=score desc&
>> group.sort=score desc
>>
>> Is there a chance that during testing you only changed _one_ of them so
>> you had
>>
>> group.sort=score desc&
>> group.sort=score asc
>>
>> ? I think the last one should win.. Shot in the dark.
>>
>> Best,
>> Erick
>>
>> On Tue, Apr 11, 2017 at 3:23 AM, alessandro.benedetti
>> wrote:
>> > To be fair the second result seems consistent with the Solr grouping
>> logic :
>> >
>> > *First Query results (Suspicious)*
>> > 1) group.sort= score desc -> select the group head as you have 1 doc per
>> > group( the head will be the top scoring doc per group)
>> > 2) sort=score asc -> sort the groups by the score of the head ascending
>> ( so
>> > the final resulting groups should be ascending in score)
>> >
>> >
>> > *Second Query results ( CORRECT)*
>> > 1) group.sort= score desc -> select the group head as you have 1 doc per
>> > group( the head will be the top scoring doc per group)
>> > 2) sort -> sort the groups by the score of the head ( so the final
>> resulting
>> > groups are sorted descending)
>> >
>> > Are we sure the the sort is expected to sort the groups after the
>> grouping
>> > happened ?
>> > I need to check the internals but I agree the current behaviour is not
>> > intuitive.
>> >
>> > Cheers
>> >
>> >
>> >
>> >
>> >
>> > -
>> > ---
>> > Alessandro Benedetti
>> > Search Consultant, R&D Software Engineer, Director
>> > Sease Ltd. - www.sease.io
>> > --
>> > View this message in context: http://lucene.472066.n3.
>> nabble.com/Grouped-Result-sort-issue-tp4329255p4329292.html
>> > Sent from the Solr - User mailing list archive at Nabble.com.
>>
:{"numFound":2,"start":0,"maxScore":0.3283673,"docs":[
{
"postId":"30142",
"score":0.3283673}]
}},
{
"groupValue":"142",
"doclist":{"numFound&
gt; I need to check the internals but I agree the current behaviour is not
> intuitive.
>
> Cheers
>
>
>
>
>
> -
> ---
> Alessandro Benedetti
> Search Consultant, R&D Software Engineer, Director
> Sease Ltd. - www.sease.io
> --
> View this mess
sultant, R&D Software Engineer, Director
Sease Ltd. - www.sease.io
--
View this message in context:
http://lucene.472066.n3.nabble.com/Grouped-Result-sort-issue-tp4329255p4329292.html
Sent from the Solr - User mailing list archive at Nabble.com.
Hi,
I have the following odd behavior on my queries. I'm using group result
using the group feature of solr. The problem is that when using the default
sort=score desc the result is as expected. But when I changed it to
sort=score asc the result is not what I expected. Below are the details of
my