lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cam Bazz" <camb...@gmail.com>
Subject query to return docs that has a certain field
Date Thu, 11 Sep 2008 22:31:02 GMT
Hello,

Lets say we have different document types, and one type of document
only contains field A.

How can I make a query so that I get all the documents that only has field A?

There is a get all documents query, but that would get all the
documents whether they contain field A or not.

Is there a way? I could make the documents containing field A have
another field B equals some flag, and then query for that flag, but
that would be kind of inefficient.

Best,
-C.B.

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