Lucene Search for documents that have a particular field?
Posted
by RP
on Stack Overflow
See other posts from Stack Overflow
or by RP
Published on 2010-04-21T19:38:57Z
Indexed on
2010/04/21
19:43 UTC
Read the original article
Hit count: 132
lucene.net
|search
Lucene.Net - Is there a way to query for documents that contain a particular field.
Lets say some of my documents have a field 'foo' and some do not.
I want to find all documents that have the field 'foo' - regardless of what the value of foo is.
How do I do this? Is it some sort of TermQuery?
© Stack Overflow or respective owner