lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From petite_abeille <petite_abei...@mac.com>
Subject Re: Searching for null value?
Date Fri, 11 Apr 2003 12:55:39 GMT
Hi Alex,

On Friday, Apr 11, 2003, at 14:39 Europe/Zurich, Alex Murzaku wrote:

> I don't think a free standing NOT query works. The best way would be to
> have a default value that is there for every record (some kind of
> support field) which in turn can be combined with a NOT query, e.g.:
> 	+field:category -category:junk
> which assumes you have a field called "field" and a field called
> "category"...

I see. What about the other way around? Is there a way to express a 
query for the existence of a field, no matter what its value might be? 
Something like: search for all documents with a field named "category"?

Thanks.

Cheers,

PA.


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message