Oh yeah! Bizarre! But I need to know which products doesn't have an image so I don't show them.
That's the problem when you mix science and business. 2008/8/23 Lance Norskog <[EMAIL PROTECTED]> > And, a negative query does not work, so if this is the only clause, you > have > to say: > > *:* AND -field[* TO *] > > Where *:* is a special code for "all documents". > > It's like learning a language: there is the normal grammar, there are the > unusual cases, and then there are the bizarre slang expressions. > > -----Original Message----- > From: Erik Hatcher [mailto:[EMAIL PROTECTED] > Sent: Saturday, August 23, 2008 12:16 PM > To: solr-user@lucene.apache.org > Subject: Re: How to know if a field is null? > > > On Aug 22, 2008, at 3:31 PM, Alexander Ramos Jardim wrote: > > I'd like to know if there's a way to query for not having a field set. > > Something like saying "I want all the docs that have field A empty". > > > > Is that possible? > > Sure is.... > > -field:[* TO *] > > that'll match all documents that do NOT have terms in "field" > > Erik > > > > -- Alexander Ramos Jardim