Thanks, but still no luck with that: *:* AND -fieldX:[* TO *] - returns 0 docs
fieldX:(a*) - return docs, so I'm sure that there's docs with this field filled. Any other ideias what could be wrong? Frederico -----Original Message----- From: Lance Norskog [mailto:[email protected]] Sent: quinta-feira, 4 de Fevereiro de 2010 05:38 To: [email protected] Subject: Re: query all filled field? Queries that start with minus or NOT don't work. You have to do this: *:* AND -fieldX:[* TO *] On Wed, Feb 3, 2010 at 5:04 AM, Frederico Azeiteiro <[email protected]> wrote: > Hum, strange.. I reindexed some docs with the field corrected. > > Now I'm sure the field is filled because: > > "fieldX:(*a*)" returns docs. > > But "fieldX:[* TO *]" is returning the same as "*.*" (all results) > > I tried with "-fieldX:[* TO *]" and I get no results at all. > > I wonder if someone has tried this before with success? > > The field is indexed as string, indexed=true and stored=true. > > Thanks, > Frederico > > -----Original Message----- > From: Ahmet Arslan [mailto:[email protected]] > Sent: quarta-feira, 3 de Fevereiro de 2010 11:48 > To: [email protected] > Subject: Re: query all filled field? > > >> Is it possible to query some field in order to get only not >> empty >> documents? >> >> >> >> All documents where field x is filled? > > Yes. q=x:[* TO *] will bring documents that has non-empty x field. > > > > -- Lance Norskog [email protected]
