RE: Query that returns all docs that contain a field

2011-12-20 Thread Uwe Schindler
..@fastmail.fm] > Sent: Tuesday, December 20, 2011 8:35 PM > To: java-user@lucene.apache.org > Subject: Re: Query that returns all docs that contain a field > > On 20/12/2011 19:27, Uwe Schindler wrote: > > Hi, > > > > No. But the corresponding filter/query do

Re: Query that returns all docs that contain a field

2011-12-20 Thread Paul Taylor
On 20/12/2011 19:27, Uwe Schindler wrote: Hi, No. But the corresponding filter/query does. The bits are just for lookup, if you already have a valid document. The remaining bits are undefined (like the rest of Fieldcache). Uwe Um, I just looked for the query in Javadocs and couldn't find it,

Re: Query that returns all docs that contain a field

2011-12-20 Thread Uwe Schindler
Hi, No. But the corresponding filter/query does. The bits are just for lookup, if you already have a valid document. The remaining bits are undefined (like the rest of Fieldcache). Uwe -- Uwe Schindler H.-H.-Meier-Allee 63, 28213 Bremen http://www.thetaphi.de Paul Taylor schrieb: On 19/12/

Re: Query that returns all docs that contain a field

2011-12-20 Thread Paul Taylor
On 19/12/2011 13:35, Michael McCandless wrote: You could also use FieldCache.getDocsWithField; it returns a bit set where the bit is set if that document had that field. And would this disregard documents that have been deleted but are still in the index Paul

Re: Query that returns all docs that contain a field

2011-12-19 Thread Paul Taylor
On 19/12/2011 13:39, Uwe Schindler wrote: Hi, There is also a Query/Filter based on that FieldCache: o.a.l.search.FieldValueFilter, possibly wrapped with ConstantScoreQuery Uwe Okay, thanks for all the options. Paul - To u

RE: Query that returns all docs that contain a field

2011-12-19 Thread Uwe Schindler
ichael McCandless [mailto:luc...@mikemccandless.com] > Sent: Monday, December 19, 2011 2:36 PM > To: java-user@lucene.apache.org > Cc: paul_t...@fastmail.fm > Subject: Re: Query that returns all docs that contain a field > > You could also use FieldCache.getDocsWithField; it returns a bi

Re: Query that returns all docs that contain a field

2011-12-19 Thread Michael McCandless
You could also use FieldCache.getDocsWithField; it returns a bit set where the bit is set if that document had that field. Mike McCandless http://blog.mikemccandless.com On Mon, Dec 19, 2011 at 7:32 AM, Trejkaz wrote: > On Mon, Dec 19, 2011 at 9:05 PM, Paul Taylor wrote: >> I was looking for a

Re: Query that returns all docs that contain a field

2011-12-19 Thread Trejkaz
On Mon, Dec 19, 2011 at 9:05 PM, Paul Taylor wrote: > I was looking for a Query that returns all documents that contain a > particular field, it doesnt matter what the value of the field is just that > the document contains the field. If you don't care about performance (or if it runs fast enough

Query that returns all docs that contain a field

2011-12-19 Thread Paul Taylor
I was looking for a Query that returns all documents that contain a particular field, it doesnt matter what the value of the field is just that the document contains the field. Paul - To unsubscribe, e-mail: java-user-unsubs