This is not quite enough information without seeing real data, I suspect. What do you get in the Admin Schema screen when you load the term counts?
As a completely random poke-in-the-dark, do you by any chance get the same value more than once for the same record's multiValued field? I could see something like this being an edge-case triggering a possible bug or different interpretation of counts. Obviously, we are looking at the indexed, rather than stored form here (not that you store anyway). Regards, Alex. ---- Newsletter and resources for Solr beginners and intermediates: http://www.solr-start.com/ On 27 November 2015 at 10:11, Vishnu Mishra <vdil...@gmail.com> wrote: > Hi > > I am using solr 5.3.1 in my application. I have indexed field named given > below : > > <field name="Title" type="string" indexed="true" stored="false" > multiValued="true" docValues="true" /> > > And then using solr json facet API for faceting. But it seems that json > facet API produce less and incorrect result counts than simple solr facet. > The json facet request which I am doing is as below: > > json.facet={ > TitleFacet: { > type: terms, > field: Title, > offset: 0, > limit: 100, > mincount: 1, > sort: { > count: desc > } > } > } > > gives for example 63 count. And then equivalent simple facet query given > below > > facet=true&facet.field=Title&facet.limit=100&facet.mincount=1&facet.offset=0 > > gives 65 count. > > > Is there any issue with Solr Json facet or am I doing anything wrong. Can > anybody help me. > > > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Facet-count-mismatch-between-solr-simple-facet-and-Json-facet-API-tp4242461.html > Sent from the Solr - User mailing list archive at Nabble.com.