lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Modassar Ather <modather1...@gmail.com>
Subject Re: Results of facet differs with change in facet.limit.
Date Wed, 04 May 2016 06:12:02 GMT
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 :
<lst name="f">
<int name="val1">47</int>

*Facet: *(distrib=false)
text_field:term AND f:val1&distrib=false
*Result*
 Shard1 :
 <lst name="f">
 <int name="val1">44</int>

 Shard3 :
 <lst name="f">
 <int name="val1">2</int>

 Shard8 :
 <lst name="f">
 <int name="val1">3</int>

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 <erickerickson@gmail.com>
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 <modather1981@gmail.com>
> wrote:
> > I tried to reproduce the same issue with a field of following type but
> > could not.
> > <fieldType name="string" class="solr.StrField" sortMissingLast="true"
> > stored="false" omitNorms="true"/>
> >
> > Please share your inputs.
> >
> > Best,
> > Modassar
> >
> > On Tue, May 3, 2016 at 10:32 AM, Modassar Ather <modather1981@gmail.com>
> > wrote:
> >
> >> Hi,
> >>
> >> Kindly share your inputs on this issue.
> >>
> >> Thanks,
> >> Modassar
> >>
> >> On Mon, May 2, 2016 at 3:53 PM, Modassar Ather <modather1981@gmail.com>
> >> wrote:
> >>
> >>> Hi,
> >>>
> >>> I have a field f which is defined as follows on solr 5.x. It is 12
> shard
> >>> cluster with no replica.
> >>>
> >>> <fieldType name="string_dv" class="solr.StrField"
> 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 :
> >>> <int name="val1">1225</int>
> >>> <int name="val2">1082</int>
> >>> <int name="val3">1076</int>
> >>>
> >>> Query : text_field:term&facet.field=f&facet.limit=200
> >>> <int name="val1">1366</int>
> >>> <int name="val2">1321</int>
> >>> <int name="val3">1315</int>
> >>>
> >>> 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 :
> >>> <int name="val1">1225</int>
> >>> <int name="val2">1082</int>
> >>> <int name="val3">1076</int>
> >>>
> >>> 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
> >>>
> >>
> >>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message