Re: Match all documents with non empty field

2008-07-02 Thread Mark Miller
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 efficie

Re: Match all documents with non empty field

2008-07-02 Thread Daniel Noll
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 i

Re: Match all documents with non empty field

2008-07-02 Thread Erick Erickson
You can certainly use a filter and MatchAllDocs. You can also index a special value for the field in question (nothere) and combine MatchAllDocs with a NOT field:nothere or some such. Best Erick On Wed, Jul 2, 2008 at 5:25 PM, Patrick <[EMAIL PROTECTED]> wrote: > Hi, > > Can't seem to wrap my he