lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: searching for empty field
Date Mon, 11 Jun 2007 14:30:52 GMT

On Jun 11, 2007, at 9:53 AM, Dino wrote:
> Now my question is how will I search for all the documents with  
> *empty*
> Field2?

You can search for "-field2:[* TO *] AND *:*" essentially.  With  
Solr, the *:* isn't needed, but is with pure Lucene to ensure a  
positive query also.

	Erik


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


Mime
View raw message