q=country:[* TO *] will find all docs that have a value in a field. However, it seems you have a space, which *is* a value. I think Eric is right - track down that record and fix the data.
Upayavira On Wed, Sep 18, 2013, at 09:23 AM, Prasi S wrote: > How to filter them in the query itself? > > Thanks, > Prasi > > > On Wed, Sep 18, 2013 at 1:06 PM, Upayavira <u...@odoko.co.uk> wrote: > > > Filter them out in your query, or in your display code. > > > > Upayavira > > > > On Wed, Sep 18, 2013, at 06:36 AM, Prasi S wrote: > > > Hi , > > > Im using solr 4.4 for our search. When i query for a keyword, it returns > > > empty valued facets in the response > > > > > > <lst name="facet_counts"> > > > <lst name="facet_queries"/> > > > <lst name="facet_fields"> > > > <lst name="Country"> > > > *<int name="">1</int>* > > > <int name="USA">1</int> > > > </lst> > > > </lst> > > > <lst name="facet_dates"/> > > > <lst name="facet_ranges"/> > > > </lst> > > > > > > I have also tried using facet.missing parameter., but no change. How can > > > we > > > handle this. > > > > > > > > > Thanks, > > > Prasi > >