On Feb 4, 2010, at 12:38 AM, Lance Norskog wrote:
Queries that start with minus or NOT don't work. You have to do this:
*:* AND -fieldX:[* TO *]
That's only true for subqueries. A purely negative single top-level
clause works fine with Solr.
Erik
On Wed, Feb 3, 2010 at 5:04 AM, Frederico Azeiteiro
<frederico.azeite...@cision.com> 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:iori...@yahoo.com]
Sent: quarta-feira, 3 de Fevereiro de 2010 11:48
To: solr-user@lucene.apache.org
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
goks...@gmail.com