[ 
https://issues.apache.org/jira/browse/SOLR-5408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13820431#comment-13820431
 ] 

Joel Bernstein edited comment on SOLR-5408 at 11/12/13 8:45 PM:
----------------------------------------------------------------

I just posted a new patch.

This patch makes a change to the "dummy" scorer that is passed down to the 
delegate collector.

The issue was that certain priority queue implementations wrap the scorer in a 
cache that saves the score for the last docId. For this cache to work properly 
the dummy scorer needed to implement the docID() method properly. This patch 
does that.

Not all the priority queue implementations use this technique, so depending on 
how the query is executed you may or may not hit the bug.


was (Author: joel.bernstein):
I just posted new patch.

This patch makes a change to the "dummy" scorer that is passed down to the 
delegate collector.

The issue was that certain priority queue implementations wrap the scorer in a 
cache that saves the score for the last docId. For this cache to work properly 
the dummy scorer needed to implement the docID() method properly. This patch 
does that.

Not all the priority queue implementations use this technique, so depending on 
how the query is executed you may or may not hit the bug.

> Collapsing Query Parser does not respect multiple Sort fields
> -------------------------------------------------------------
>
>                 Key: SOLR-5408
>                 URL: https://issues.apache.org/jira/browse/SOLR-5408
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.5
>            Reporter: Brandon Chapman
>            Assignee: Joel Bernstein
>            Priority: Critical
>         Attachments: SOLR-5408.2.patch, SOLR-5408.patch, SOLR-5408.patch
>
>
> When using the collapsing query parser, only the last sort field appears to 
> be used.
> http://172.18.0.10:8080/solr/product/select_eng?sort=score%20desc,name_sort_eng%20desc&qf=name_eng^3+brand^2+categories_term_eng+sku+upc+promoTag+model+related_terms_eng&pf2=name_eng^2&defType=edismax&rows=12&pf=name_eng~5^3&start=0&q=ipad&boost=sqrt(popularity)&qt=/select_eng&fq=productType:MERCHANDISE&fq=merchant:bestbuycanada&fq=(*:*+AND+-all_all_suppressed_b_ovly:[*+TO+*]+AND+-rbc_all_suppressed_b_ovly:[*+TO+*]+AND+-rbc_cpx_suppressed_b_ovly:[*+TO+*])+OR+(all_all_suppressed_b_ovly:false+AND+-rbc_all_suppressed_b_ovly:[*+TO+*]+AND+-rbc_cpx_suppressed_b_ovly:[*+TO+*])+OR+(rbc_all_suppressed_b_ovly:false+AND+-rbc_cpx_suppressed_b_ovly:[*+TO+*])+OR+(rbc_cpx_suppressed_b_ovly:false)&fq=translations:eng&fl=psid,name_eng,score&debug=true&debugQuery=true&fq={!collapse+field%3DgroupId+nullPolicy%3Dexpand}
> <result name="response" numFound="5927" start="0" maxScore="5.6674457">
> <doc>
> <str name="psid">3002010250210</str>
> <str name="name_eng">
> ZOTAC ZBOX nano XS AD13 Plus All-In-One PC (AMD E2-1800/2GB RAM/64GB SSD)
> </str>
> <float name="score">0.41423172</float>
> </doc>
> The same query without using the collapsing query parser produces the 
> expected result.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to