Re: Results of facet differs with change in facet.limit.

2016-05-05 Thread Erick Erickson
OK, this is strange on the face of it. Is there any chance you could
create a test case that fails? Even if it only fails a small percentage
of the time...

Best,
Erick

On Wed, May 4, 2016 at 3:02 AM, Modassar Ather  wrote:
> The "val1" is same for both the test with limit 100 and 200 so the
> following is true.
>
> limit=100
> 1225
> 1082
> 1076
>
> limit=200
> 1366
> 1321
> 1315
>
> This I have noticed irrespective of facet.limit too. Please refer to my
> previous mail for the example.
>
> Thanks,
> Modassar
>
> On Wed, May 4, 2016 at 3:01 PM, Toke Eskildsen 
> wrote:
>
>> On Mon, 2016-05-02 at 15:53 +0530, Modassar Ather wrote:
>> > E.g.
>> > Query : text_field:term&facet.field=f&facet.limit=100
>> > Result :
>> > 1225
>> > 1082
>> > 1076
>> >
>> > Query : text_field:term&facet.field=f&facet.limit=200
>> > 1366
>> > 1321
>> > 1315
>>
>> Is the "val1" in your limit=100 test the same term as your "val1" in
>> your limit=200-test?
>>
>>
>> Or to phrase it another way: Do you have
>>
>> limit=100
>> 1225
>> 1082
>> 1076
>>
>> limit=200
>> 1366
>> 1321
>> 1315
>>
>>
>> or
>>
>> limit=100
>> 1225
>> 1082
>> 1076
>>
>> limit=200
>> 1366
>> 1321
>> 1315
>>
>>
>> - Toke Eskildsen, State and University Library, Denmark
>>
>>


Re: Results of facet differs with change in facet.limit.

2016-05-04 Thread Modassar Ather
The "val1" is same for both the test with limit 100 and 200 so the
following is true.

limit=100
1225
1082
1076

limit=200
1366
1321
1315

This I have noticed irrespective of facet.limit too. Please refer to my
previous mail for the example.

Thanks,
Modassar

On Wed, May 4, 2016 at 3:01 PM, Toke Eskildsen 
wrote:

> On Mon, 2016-05-02 at 15:53 +0530, Modassar Ather wrote:
> > E.g.
> > Query : text_field:term&facet.field=f&facet.limit=100
> > Result :
> > 1225
> > 1082
> > 1076
> >
> > Query : text_field:term&facet.field=f&facet.limit=200
> > 1366
> > 1321
> > 1315
>
> Is the "val1" in your limit=100 test the same term as your "val1" in
> your limit=200-test?
>
>
> Or to phrase it another way: Do you have
>
> limit=100
> 1225
> 1082
> 1076
>
> limit=200
> 1366
> 1321
> 1315
>
>
> or
>
> limit=100
> 1225
> 1082
> 1076
>
> limit=200
> 1366
> 1321
> 1315
>
>
> - Toke Eskildsen, State and University Library, Denmark
>
>


Re: Results of facet differs with change in facet.limit.

2016-05-04 Thread Toke Eskildsen
On Mon, 2016-05-02 at 15:53 +0530, Modassar Ather wrote:
> E.g.
> Query : text_field:term&facet.field=f&facet.limit=100
> Result :
> 1225
> 1082
> 1076
> 
> Query : text_field:term&facet.field=f&facet.limit=200
> 1366
> 1321
> 1315

Is the "val1" in your limit=100 test the same term as your "val1" in
your limit=200-test?


Or to phrase it another way: Do you have

limit=100
1225
1082
1076

limit=200
1366
1321
1315
 

or

limit=100
1225
1082
1076

limit=200
1366
1321
1315


- Toke Eskildsen, State and University Library, Denmark



Re: Results of facet differs with change in facet.limit.

2016-05-03 Thread Modassar Ather
Thanks Erick for your response.

I checked with distrib=false. I tried with a smaller result set.

*Search*
E.g. text_field:term AND f:val1
Number of matches : 49

*Facet:* (distrib=true)
text_field:term AND f:val1
*Result*
Shard1 :

47

*Facet: *(distrib=false)
text_field:term AND f:val1&distrib=false
*Result*
 Shard1 :
 
 44

 Shard3 :
 
 2

 Shard8 :
 
 3

All other shards out of 12 shows 0 count against val1. It seems that the
result of shard3 is not being added to the main result.
Kindly comment.

Best,
Modassar

On Wed, May 4, 2016 at 5:33 AM, Erick Erickson 
wrote:

> Hmm, I'd be interested what you get if you restrict your
> queries to individual shards using &distrib=false. This
> will go to the individual shard you address and no others.
>
> Does the facet count change in those circumstances?
>
> Best,
> Erick
>
> On Tue, May 3, 2016 at 4:48 AM, Modassar Ather 
> wrote:
> > I tried to reproduce the same issue with a field of following type but
> > could not.
> >  > stored="false" omitNorms="true"/>
> >
> > Please share your inputs.
> >
> > Best,
> > Modassar
> >
> > On Tue, May 3, 2016 at 10:32 AM, Modassar Ather 
> > wrote:
> >
> >> Hi,
> >>
> >> Kindly share your inputs on this issue.
> >>
> >> Thanks,
> >> Modassar
> >>
> >> On Mon, May 2, 2016 at 3:53 PM, Modassar Ather 
> >> wrote:
> >>
> >>> Hi,
> >>>
> >>> I have a field f which is defined as follows on solr 5.x. It is 12
> shard
> >>> cluster with no replica.
> >>>
> >>>  sortMissingLast="true"
> >>> stored="false" indexed="false" docValues="true"/>
> >>>
> >>> When I facet on this field with different facet.limit I get different
> >>> facet count.
> >>>
> >>> E.g.
> >>> Query : text_field:term&facet.field=f&facet.limit=100
> >>> Result :
> >>> 1225
> >>> 1082
> >>> 1076
> >>>
> >>> Query : text_field:term&facet.field=f&facet.limit=200
> >>> 1366
> >>> 1321
> >>> 1315
> >>>
> >>> I am noticing lesser document in facets whereas the numFound during
> >>> search is more. Please refer to following query for details.
> >>>
> >>> Query : text_field:term&facet.field=f
> >>> Result :
> >>> 1225
> >>> 1082
> >>> 1076
> >>>
> >>> Query : text_field:term AND f:val1
> >>> Result: numFound=1366
> >>>
> >>> Kindly help me understand this behavior or let me know if it is an
> issue.
> >>>
> >>> Thanks,
> >>> Modassar
> >>>
> >>
> >>
>


Re: Results of facet differs with change in facet.limit.

2016-05-03 Thread Erick Erickson
Hmm, I'd be interested what you get if you restrict your
queries to individual shards using &distrib=false. This
will go to the individual shard you address and no others.

Does the facet count change in those circumstances?

Best,
Erick

On Tue, May 3, 2016 at 4:48 AM, Modassar Ather  wrote:
> I tried to reproduce the same issue with a field of following type but
> could not.
>  stored="false" omitNorms="true"/>
>
> Please share your inputs.
>
> Best,
> Modassar
>
> On Tue, May 3, 2016 at 10:32 AM, Modassar Ather 
> wrote:
>
>> Hi,
>>
>> Kindly share your inputs on this issue.
>>
>> Thanks,
>> Modassar
>>
>> On Mon, May 2, 2016 at 3:53 PM, Modassar Ather 
>> wrote:
>>
>>> Hi,
>>>
>>> I have a field f which is defined as follows on solr 5.x. It is 12 shard
>>> cluster with no replica.
>>>
>>> >> stored="false" indexed="false" docValues="true"/>
>>>
>>> When I facet on this field with different facet.limit I get different
>>> facet count.
>>>
>>> E.g.
>>> Query : text_field:term&facet.field=f&facet.limit=100
>>> Result :
>>> 1225
>>> 1082
>>> 1076
>>>
>>> Query : text_field:term&facet.field=f&facet.limit=200
>>> 1366
>>> 1321
>>> 1315
>>>
>>> I am noticing lesser document in facets whereas the numFound during
>>> search is more. Please refer to following query for details.
>>>
>>> Query : text_field:term&facet.field=f
>>> Result :
>>> 1225
>>> 1082
>>> 1076
>>>
>>> Query : text_field:term AND f:val1
>>> Result: numFound=1366
>>>
>>> Kindly help me understand this behavior or let me know if it is an issue.
>>>
>>> Thanks,
>>> Modassar
>>>
>>
>>


Re: Results of facet differs with change in facet.limit.

2016-05-03 Thread Modassar Ather
I tried to reproduce the same issue with a field of following type but
could not.


Please share your inputs.

Best,
Modassar

On Tue, May 3, 2016 at 10:32 AM, Modassar Ather 
wrote:

> Hi,
>
> Kindly share your inputs on this issue.
>
> Thanks,
> Modassar
>
> On Mon, May 2, 2016 at 3:53 PM, Modassar Ather 
> wrote:
>
>> Hi,
>>
>> I have a field f which is defined as follows on solr 5.x. It is 12 shard
>> cluster with no replica.
>>
>> > stored="false" indexed="false" docValues="true"/>
>>
>> When I facet on this field with different facet.limit I get different
>> facet count.
>>
>> E.g.
>> Query : text_field:term&facet.field=f&facet.limit=100
>> Result :
>> 1225
>> 1082
>> 1076
>>
>> Query : text_field:term&facet.field=f&facet.limit=200
>> 1366
>> 1321
>> 1315
>>
>> I am noticing lesser document in facets whereas the numFound during
>> search is more. Please refer to following query for details.
>>
>> Query : text_field:term&facet.field=f
>> Result :
>> 1225
>> 1082
>> 1076
>>
>> Query : text_field:term AND f:val1
>> Result: numFound=1366
>>
>> Kindly help me understand this behavior or let me know if it is an issue.
>>
>> Thanks,
>> Modassar
>>
>
>


Re: Results of facet differs with change in facet.limit.

2016-05-02 Thread Modassar Ather
Hi,

Kindly share your inputs on this issue.

Thanks,
Modassar

On Mon, May 2, 2016 at 3:53 PM, Modassar Ather 
wrote:

> Hi,
>
> I have a field f which is defined as follows on solr 5.x. It is 12 shard
> cluster with no replica.
>
>  stored="false" indexed="false" docValues="true"/>
>
> When I facet on this field with different facet.limit I get different
> facet count.
>
> E.g.
> Query : text_field:term&facet.field=f&facet.limit=100
> Result :
> 1225
> 1082
> 1076
>
> Query : text_field:term&facet.field=f&facet.limit=200
> 1366
> 1321
> 1315
>
> I am noticing lesser document in facets whereas the numFound during search
> is more. Please refer to following query for details.
>
> Query : text_field:term&facet.field=f
> Result :
> 1225
> 1082
> 1076
>
> Query : text_field:term AND f:val1
> Result: numFound=1366
>
> Kindly help me understand this behavior or let me know if it is an issue.
>
> Thanks,
> Modassar
>


Results of facet differs with change in facet.limit.

2016-05-02 Thread Modassar Ather
Hi,

I have a field f which is defined as follows on solr 5.x. It is 12 shard
cluster with no replica.



When I facet on this field with different facet.limit I get different facet
count.

E.g.
Query : text_field:term&facet.field=f&facet.limit=100
Result :
1225
1082
1076

Query : text_field:term&facet.field=f&facet.limit=200
1366
1321
1315

I am noticing lesser document in facets whereas the numFound during search
is more. Please refer to following query for details.

Query : text_field:term&facet.field=f
Result :
1225
1082
1076

Query : text_field:term AND f:val1
Result: numFound=1366

Kindly help me understand this behavior or let me know if it is an issue.

Thanks,
Modassar