What happens when you facet on a 'all document query' (q=*:*)? Are you sure your facet fields actually have the content? If they are stored, they should be returned with the query. If they are not stored, you could see what they contain in the Schema screen of the Admin UI (load tokens checkbox).
Hope that helps to narrow down the issue. Regards, Alex. P.s. I don't doubt you, but for myself, I would also do a sanity check that I AM actually getting results because I am querying on THOSE fields and not - say - on some other field and/or copyField target. Enabling debug would show you exactly what fields are being querying with what (analyzed) token. ---- http://www.solr-start.com/ - Resources for Solr users, new and experienced On 8 April 2017 at 17:53, kshitij tyagi <kshitij.shopcl...@gmail.com> wrote: > Hi, > > I am getting zero count for all facets created by using facet.field in solr > 5.1 > > The surprise element is that I am able to query correctly on fields, but my > facet counts are returning zero count. > > Can anyone help me out here on what all I should check? > > Regards, > Kshitij