lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Murzaku" <li...@lissus.com>
Subject RE: Searching for null value?
Date Fri, 11 Apr 2003 13:20:30 GMT
yeah - that would be very compact indeed... but, I don't think the
existence of the field is part of any query type implementations.

-----Original Message-----
From: petite_abeille [mailto:petite_abeille@mac.com] 
Sent: Friday, April 11, 2003 8:56 AM
To: Lucene Users List
Subject: Re: Searching for null value?


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



---------------------------------------------------------------------
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