Daniel Noll wrote:
Patrick wrote:
Hi,

Can't seem to wrap my head around how to go about it.

I want to retrieve all documents where a certain field in not empty.

What would be the best way to do it?

The most trivial way would be to use a PrefixQuery with an empty string.

It won't be efficient unless you wrap it in a QueryFilter to cache the result, but I found it to be "fast enough" even for relatively large document sets.

Daniel


Also, search the archive...I think there is something you can do like *:* NOT [* TO *]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to