Re: CollapsingQParserPlugin scores incorrectly in Solr 4.6.0 when multiple sort criteria are used

2013-12-14 Thread Umesh Prasad
Thanks a lot Joel ..
For now I have taken it from trunk and verified the patched code works
fine ..



On Thu, Dec 12, 2013 at 9:21 PM, Joel Bernstein  wrote:

> Hi,
>
> This is a known issue resolved in SOLR-5408. It's fixed in trunk and 4x and
> if there is a 4.6.1 it will be in there. If not it will be Solr 4.7.
>
> https://issues.apache.org/jira/browse/SOLR-5408
>
> Joel
>
>
> On Wed, Dec 11, 2013 at 11:36 PM, Umesh Prasad 
> wrote:
>
> > Issue occurs in Single Segment index also ..
> >
> > sort: "score desc,floSalesRank asc"
> > response: {
> >
> >- numFound: 21461,
> >- start: 0,
> >- maxScore: 4.4415073,
> >- docs: [
> >   - {
> >  - floSalesRank: 0,
> >  - score: 0.123750895,
> >  - [docid]: 9208
> >  -
> >
> >
> >
> >
> > On Thu, Dec 12, 2013 at 9:50 AM, Umesh Prasad 
> > wrote:
> >
> > > Hi All,
> > > I am using new CollapsingQParserPlugin for Grouping and found that
> it
> > > works incorrectly when I use multiple sort criteria.
> > >
> > >
> > >
> > >
> >
> http://localhost:8080/solr/toys/select/?q=car%20and%20toys&version=2.2&start=0&rows=10&indent=on&sort=score%20desc,floSalesRank%20asc&facet=on&facet.field=store_path&facet.mincount=1&bq=store_path:%22mgl/ksc/gcv%22
> > >
> >
> ^10&wt=json&fl=score,floSalesRank,[docid]&bq=id:STFDCHZM3552AHXE^1000&fq={!collapse%20field=item_id}
> > >
> > >
> > >- sort: "score desc,floSalesRank asc",
> > >- fl: "score,floSalesRank,[docid]",
> > >- start: "0",
> > >- q: "car and toys",
> > >- facet.field: "store_path",
> > >- fq: "{!collapse field=item_id}"
> > >
> > >
> > > response:
> > >
> > > {
> > >
> > >- numFound: 21461,
> > >- start: 0,
> > >- maxScore: 4.447499,
> > >- docs: [
> > >   - {
> > >  - floSalesRank: 0,
> > >  - score: 0.12396862,
> > >  - [docid]: 9703
> > >  },
> > >   - {
> > >   -
> > >
> > >
> > > I found a bug opened for same
> > > https://issues.apache.org/jira/browse/SOLR-5408 ..
> > >
> > >
> > > The bug is closed but I am not really sure that it works specially for
> > > Multiple segment parts ..
> > >
> > > I am using Solr 4.6.0 and my index contains 4 segments ..
> > >
> > > Have anyone else faced the same issue ?
> > >
> > > ---
> > > Thanks & Regards
> > > Umesh Prasad
> > >
> >
> >
> >
> > --
> > ---
> > Thanks & Regards
> > Umesh Prasad
> >
>
>
>
> --
> Joel Bernstein
> Search Engineer at Heliosearch
>



-- 
---
Thanks & Regards
Umesh Prasad


Re: CollapsingQParserPlugin scores incorrectly in Solr 4.6.0 when multiple sort criteria are used

2013-12-12 Thread Joel Bernstein
Hi,

This is a known issue resolved in SOLR-5408. It's fixed in trunk and 4x and
if there is a 4.6.1 it will be in there. If not it will be Solr 4.7.

https://issues.apache.org/jira/browse/SOLR-5408

Joel


On Wed, Dec 11, 2013 at 11:36 PM, Umesh Prasad  wrote:

> Issue occurs in Single Segment index also ..
>
> sort: "score desc,floSalesRank asc"
> response: {
>
>- numFound: 21461,
>- start: 0,
>- maxScore: 4.4415073,
>- docs: [
>   - {
>  - floSalesRank: 0,
>  - score: 0.123750895,
>  - [docid]: 9208
>  -
>
>
>
>
> On Thu, Dec 12, 2013 at 9:50 AM, Umesh Prasad 
> wrote:
>
> > Hi All,
> > I am using new CollapsingQParserPlugin for Grouping and found that it
> > works incorrectly when I use multiple sort criteria.
> >
> >
> >
> >
> http://localhost:8080/solr/toys/select/?q=car%20and%20toys&version=2.2&start=0&rows=10&indent=on&sort=score%20desc,floSalesRank%20asc&facet=on&facet.field=store_path&facet.mincount=1&bq=store_path:%22mgl/ksc/gcv%22
> >
> ^10&wt=json&fl=score,floSalesRank,[docid]&bq=id:STFDCHZM3552AHXE^1000&fq={!collapse%20field=item_id}
> >
> >
> >- sort: "score desc,floSalesRank asc",
> >- fl: "score,floSalesRank,[docid]",
> >- start: "0",
> >- q: "car and toys",
> >- facet.field: "store_path",
> >- fq: "{!collapse field=item_id}"
> >
> >
> > response:
> >
> > {
> >
> >- numFound: 21461,
> >- start: 0,
> >- maxScore: 4.447499,
> >- docs: [
> >   - {
> >  - floSalesRank: 0,
> >  - score: 0.12396862,
> >  - [docid]: 9703
> >  },
> >   - {
> >   -
> >
> >
> > I found a bug opened for same
> > https://issues.apache.org/jira/browse/SOLR-5408 ..
> >
> >
> > The bug is closed but I am not really sure that it works specially for
> > Multiple segment parts ..
> >
> > I am using Solr 4.6.0 and my index contains 4 segments ..
> >
> > Have anyone else faced the same issue ?
> >
> > ---
> > Thanks & Regards
> > Umesh Prasad
> >
>
>
>
> --
> ---
> Thanks & Regards
> Umesh Prasad
>



-- 
Joel Bernstein
Search Engineer at Heliosearch


Re: CollapsingQParserPlugin scores incorrectly in Solr 4.6.0 when multiple sort criteria are used

2013-12-11 Thread Umesh Prasad
Issue occurs in Single Segment index also ..

sort: "score desc,floSalesRank asc"
response: {

   - numFound: 21461,
   - start: 0,
   - maxScore: 4.4415073,
   - docs: [
  - {
 - floSalesRank: 0,
 - score: 0.123750895,
 - [docid]: 9208
 -




On Thu, Dec 12, 2013 at 9:50 AM, Umesh Prasad  wrote:

> Hi All,
> I am using new CollapsingQParserPlugin for Grouping and found that it
> works incorrectly when I use multiple sort criteria.
>
>
>
> http://localhost:8080/solr/toys/select/?q=car%20and%20toys&version=2.2&start=0&rows=10&indent=on&sort=score%20desc,floSalesRank%20asc&facet=on&facet.field=store_path&facet.mincount=1&bq=store_path:%22mgl/ksc/gcv%22
> ^10&wt=json&fl=score,floSalesRank,[docid]&bq=id:STFDCHZM3552AHXE^1000&fq={!collapse%20field=item_id}
>
>
>- sort: "score desc,floSalesRank asc",
>- fl: "score,floSalesRank,[docid]",
>- start: "0",
>- q: "car and toys",
>- facet.field: "store_path",
>- fq: "{!collapse field=item_id}"
>
>
> response:
>
> {
>
>- numFound: 21461,
>- start: 0,
>- maxScore: 4.447499,
>- docs: [
>   - {
>  - floSalesRank: 0,
>  - score: 0.12396862,
>  - [docid]: 9703
>  },
>   - {
>   -
>
>
> I found a bug opened for same
> https://issues.apache.org/jira/browse/SOLR-5408 ..
>
>
> The bug is closed but I am not really sure that it works specially for
> Multiple segment parts ..
>
> I am using Solr 4.6.0 and my index contains 4 segments ..
>
> Have anyone else faced the same issue ?
>
> ---
> Thanks & Regards
> Umesh Prasad
>



-- 
---
Thanks & Regards
Umesh Prasad


CollapsingQParserPlugin scores incorrectly in Solr 4.6.0 when multiple sort criteria are used

2013-12-11 Thread Umesh Prasad
Hi All,
I am using new CollapsingQParserPlugin for Grouping and found that it
works incorrectly when I use multiple sort criteria.


http://localhost:8080/solr/toys/select/?q=car%20and%20toys&version=2.2&start=0&rows=10&indent=on&sort=score%20desc,floSalesRank%20asc&facet=on&facet.field=store_path&facet.mincount=1&bq=store_path:%22mgl/ksc/gcv%22
^10&wt=json&fl=score,floSalesRank,[docid]&bq=id:STFDCHZM3552AHXE^1000&fq={!collapse%20field=item_id}


   - sort: "score desc,floSalesRank asc",
   - fl: "score,floSalesRank,[docid]",
   - start: "0",
   - q: "car and toys",
   - facet.field: "store_path",
   - fq: "{!collapse field=item_id}"


response:

{

   - numFound: 21461,
   - start: 0,
   - maxScore: 4.447499,
   - docs: [
  - {
 - floSalesRank: 0,
 - score: 0.12396862,
 - [docid]: 9703
 },
  - {
  -


I found a bug opened for same
https://issues.apache.org/jira/browse/SOLR-5408 ..


The bug is closed but I am not really sure that it works specially for
Multiple segment parts ..

I am using Solr 4.6.0 and my index contains 4 segments ..

Have anyone else faced the same issue ?

---
Thanks & Regards
Umesh Prasad