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: Search for null
Date Mon, 23 Jul 2007 20:23:33 GMT

On Jul 23, 2007, at 11:32 AM, testn wrote:
> Is it possible to search for the document that specified field  
> doesn't exist
> or such field value is null?

This is from Solr, so I'm not sure off the top of my head if this  
mojo applies by itself, but a search for -fieldname:[* TO *] will  
result in all documents that do not have the specified field.

	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