[jira] [Commented] (SOLR-5408) Collapsing Query Parser does not respect multiple Sort fields

2013-11-13 Thread Brandon Chapman (JIRA)

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

Brandon Chapman commented on SOLR-5408:
---

Joel, 

The file you provided worked. I did a brief test in our staging environment for 
the sorting and ran all our integration tests.

Thanks,

Brandon

> 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: CollapsingQParserPlugin.java, 
> CollapsingQParserPlugin.java, SOLR-5027.patch, 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}
> 
> 
> 3002010250210
> 
> ZOTAC ZBOX nano XS AD13 Plus All-In-One PC (AMD E2-1800/2GB RAM/64GB SSD)
> 
> 0.41423172
> 
> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-5408) Collapsing Query Parser does not respect multiple Sort fields

2013-11-12 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on SOLR-5408:
---

Commit 1541277 from [~joel.bernstein] in branch 'dev/branches/branch_4x'
[ https://svn.apache.org/r1541277 ]

SOLR-5408 Fixed issue with scorer

> 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: CollapsingQParserPlugin.java, 
> CollapsingQParserPlugin.java, SOLR-5027.patch, 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}
> 
> 
> 3002010250210
> 
> ZOTAC ZBOX nano XS AD13 Plus All-In-One PC (AMD E2-1800/2GB RAM/64GB SSD)
> 
> 0.41423172
> 
> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-5408) Collapsing Query Parser does not respect multiple Sort fields

2013-11-12 Thread Joel Bernstein (JIRA)

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

Joel Bernstein commented on SOLR-5408:
--

Brandon,

I put a file up for you to test. I don't have the same build as you have 
anymore so I won't be able to compile and test. But the changes were very 
small, so I suspect they will work.

Joel

> 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: CollapsingQParserPlugin.java, 
> CollapsingQParserPlugin.java, SOLR-5027.patch, 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}
> 
> 
> 3002010250210
> 
> ZOTAC ZBOX nano XS AD13 Plus All-In-One PC (AMD E2-1800/2GB RAM/64GB SSD)
> 
> 0.41423172
> 
> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-5408) Collapsing Query Parser does not respect multiple Sort fields

2013-11-12 Thread Joel Bernstein (JIRA)

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

Joel Bernstein commented on SOLR-5408:
--

Brandon,

I'll edit your version of the CollapsingQParserPlugin directly and post that 
back to the ticket.

So just attach the CollapserQParserPlugin.java file.

Joel 

> 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-5027.patch, 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}
> 
> 
> 3002010250210
> 
> ZOTAC ZBOX nano XS AD13 Plus All-In-One PC (AMD E2-1800/2GB RAM/64GB SSD)
> 
> 0.41423172
> 
> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-5408) Collapsing Query Parser does not respect multiple Sort fields

2013-11-12 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on SOLR-5408:
---

Commit 1541232 from [~joel.bernstein] in branch 'dev/trunk'
[ https://svn.apache.org/r1541232 ]

SOLR-5408 Fixed issue with scorer

> 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}
> 
> 
> 3002010250210
> 
> ZOTAC ZBOX nano XS AD13 Plus All-In-One PC (AMD E2-1800/2GB RAM/64GB SSD)
> 
> 0.41423172
> 
> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-5408) Collapsing Query Parser does not respect multiple Sort fields

2013-11-12 Thread Joel Bernstein (JIRA)

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

Joel Bernstein commented on SOLR-5408:
--

Brandon,

If you want to post your version of the CollapsingQParserPlugin directly to 
this ticket. I will make the changes to the version you have and post it back.

Otherwise, I will shortly be committing this fix to trunk and 4x so you could 
replace your version with the latest version.

> 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}
> 
> 
> 3002010250210
> 
> ZOTAC ZBOX nano XS AD13 Plus All-In-One PC (AMD E2-1800/2GB RAM/64GB SSD)
> 
> 0.41423172
> 
> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-5408) Collapsing Query Parser does not respect multiple Sort fields

2013-11-12 Thread Joel Bernstein (JIRA)

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

Joel Bernstein commented on SOLR-5408:
--

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}
> 
> 
> 3002010250210
> 
> ZOTAC ZBOX nano XS AD13 Plus All-In-One PC (AMD E2-1800/2GB RAM/64GB SSD)
> 
> 0.41423172
> 
> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-5408) Collapsing Query Parser does not respect multiple Sort fields

2013-11-12 Thread Joel Bernstein (JIRA)

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

Joel Bernstein commented on SOLR-5408:
--

When I started testing with a larger dataset (millions) it become apparent 
pretty quickly that things will still broken with the score sorting when other 
criteria is used.

I'm about to post the fix that worked on the larger data set.

I'll have to give some thought into how get this to break with a small test 
case.

> 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.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}
> 
> 
> 3002010250210
> 
> ZOTAC ZBOX nano XS AD13 Plus All-In-One PC (AMD E2-1800/2GB RAM/64GB SSD)
> 
> 0.41423172
> 
> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-5408) Collapsing Query Parser does not respect multiple Sort fields

2013-11-12 Thread Erik Hatcher (JIRA)

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

Erik Hatcher commented on SOLR-5408:


bq. Further testing shows the bug is still present after this patch.

Under what conditions?  Can you post a failing test case?

> 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.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}
> 
> 
> 3002010250210
> 
> ZOTAC ZBOX nano XS AD13 Plus All-In-One PC (AMD E2-1800/2GB RAM/64GB SSD)
> 
> 0.41423172
> 
> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-5408) Collapsing Query Parser does not respect multiple Sort fields

2013-11-12 Thread Erik Hatcher (JIRA)

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

Erik Hatcher commented on SOLR-5408:


bq.  Only one concern and that is the assertion of 5 segments... All we need is 
there to be more then 1 segment to ensure the test is valid.

+1, by all means modify the test to whatever makes sense here.  Maybe 
{code}assertTrue("Must be more than one segment", 
searcherRef.get().getIndexReader().leaves().size() > 1){code} or something like 
that?

> 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.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}
> 
> 
> 3002010250210
> 
> ZOTAC ZBOX nano XS AD13 Plus All-In-One PC (AMD E2-1800/2GB RAM/64GB SSD)
> 
> 0.41423172
> 
> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-5408) Collapsing Query Parser does not respect multiple Sort fields

2013-11-12 Thread Joel Bernstein (JIRA)

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

Joel Bernstein commented on SOLR-5408:
--

Further testing shows the bug is still present after this patch. Continuing to 
investigate...

> 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.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}
> 
> 
> 3002010250210
> 
> ZOTAC ZBOX nano XS AD13 Plus All-In-One PC (AMD E2-1800/2GB RAM/64GB SSD)
> 
> 0.41423172
> 
> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-5408) Collapsing Query Parser does not respect multiple Sort fields

2013-11-12 Thread Joel Bernstein (JIRA)

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

Joel Bernstein commented on SOLR-5408:
--

Erick,

I like the a test case. Only one concern and that is the assertion of 5 
segments. Could be a race condition here where a background merge gets done in 
between commits, causing there to be fewer then 5 segments.

I was thinking about just taking out this assertion and using the rest of the 
test. All we need is there to be more then 1 segment to ensure the test is 
valid.

Let me know what you think,

Thanks,
Joel

> 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.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}
> 
> 
> 3002010250210
> 
> ZOTAC ZBOX nano XS AD13 Plus All-In-One PC (AMD E2-1800/2GB RAM/64GB SSD)
> 
> 0.41423172
> 
> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-5408) Collapsing Query Parser does not respect multiple Sort fields

2013-11-11 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on SOLR-5408:
---

Commit 1540922 from [~joel.bernstein] in branch 'dev/branches/branch_4x'
[ https://svn.apache.org/r1540922 ]

SOLR-5408 Fix CollapsingQParserPlugin issue with compound sort criteria

> 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.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}
> 
> 
> 3002010250210
> 
> ZOTAC ZBOX nano XS AD13 Plus All-In-One PC (AMD E2-1800/2GB RAM/64GB SSD)
> 
> 0.41423172
> 
> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-5408) Collapsing Query Parser does not respect multiple Sort fields

2013-11-11 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on SOLR-5408:
---

Commit 1540904 from [~joel.bernstein] in branch 'dev/trunk'
[ https://svn.apache.org/r1540904 ]

SOLR-5408 Fix CollapsingQParserPlugin issue with compound sort criteria

> 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.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}
> 
> 
> 3002010250210
> 
> ZOTAC ZBOX nano XS AD13 Plus All-In-One PC (AMD E2-1800/2GB RAM/64GB SSD)
> 
> 0.41423172
> 
> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-5408) Collapsing Query Parser does not respect multiple Sort fields

2013-11-11 Thread Joel Bernstein (JIRA)

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

Joel Bernstein commented on SOLR-5408:
--

Brandon,

I believe this patch should resolve the issue. It was created on branch_4x. If 
it doesn't apply to your build, let me know and I'll create a patch for the 
version you're working with.

The problem was that the scorer needed to be set on the delegate collecter 
after each segment reader was set. The initial code was setting the scorer on 
the delegate collector only once, which worked fine for single sort critera. 

Joel



> 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.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}
> 
> 
> 3002010250210
> 
> ZOTAC ZBOX nano XS AD13 Plus All-In-One PC (AMD E2-1800/2GB RAM/64GB SSD)
> 
> 0.41423172
> 
> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-5408) Collapsing Query Parser does not respect multiple Sort fields

2013-11-11 Thread Joel Bernstein (JIRA)

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

Joel Bernstein commented on SOLR-5408:
--

I'll add a test case for this as well going forward.

> 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.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}
> 
> 
> 3002010250210
> 
> ZOTAC ZBOX nano XS AD13 Plus All-In-One PC (AMD E2-1800/2GB RAM/64GB SSD)
> 
> 0.41423172
> 
> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-5408) Collapsing Query Parser does not respect multiple Sort fields

2013-11-11 Thread Joel Bernstein (JIRA)

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

Joel Bernstein commented on SOLR-5408:
--

I was able to reproduce and am investigating what the issue is.

> 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
>
> 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}
> 
> 
> 3002010250210
> 
> ZOTAC ZBOX nano XS AD13 Plus All-In-One PC (AMD E2-1800/2GB RAM/64GB SSD)
> 
> 0.41423172
> 
> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org