lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <>
Subject Re: Creating a Query that matches Documents without a specific Field set?
Date Tue, 09 Feb 2010 17:21:12 GMT

> is there any way I can search for Documents that have a
> specific Field not set?

Yes. If you are using QueryParser  *:* -specificField:[* TO *]
> I was hoping that a simple TermQuery where the term value
> was set to be an empty String would help me out but I was prooven
> wrong. combined with RangeQuery can do that if you are
constructing your queries programmatically.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message