Yes I do have a couple of documents with no values and one with an empty string. Find below the output of a facet on the fieldName. ThanksViswa
<int name="">2</int><int name="CASTIGO.430">2</int><int name="GDOGPRODY.424">2</int><int name="QMAGIC.412">2</int><int name=" ">1</int> > Date: Sat, 20 Nov 2010 15:29:06 -0500 > Subject: Re: Empty value/string matching > From: erickerick...@gmail.com > To: solr-user@lucene.apache.org > > Are you absolutely sure your documents really don't have any values for > "FieldName"? Because your results are perfectly correct if every doc has a > value for "FieldName". > > Or are you saying there no such field as "FieldName"? > > Best > Erick > > On Sat, Nov 20, 2010 at 3:12 PM, Viswa S <svis...@hotmail.com> wrote: > > > > > Folks,Am trying to query documents which have no values present, I have > > used the following constructs and it doesn't seem to work on the solr dev > > tip (as of 09/22) or the 1.4 builds.1. (*:* AND -FieldName[* TO *]) - > > returns no documents, parsedquery was "+MatchAllDocsQuery(*:*) -FieldName:[* > > TO *]"2. -FieldName:[* TO *] - returns no documents, parsedquery was > > "-FieldName:[* TO *]"3. FieldName:"" - returns no documents, parsedquery was > > empty (<str name="parsedquery"/>)The field is type string, using the > > LuceneQParser, I have also tried to see if "FieldName:[* TO *]" if the > > documents with no terms are ignored and didn't seem to be the case, the > > result set was everything.Any help would be appreciated.-Viswa > >