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

Reply via email to