do not forget that Filter does not have to be loaded in memory, not any more since LUECEN-584 commit! Now it is only skipping iterator what you need.
translated, you could use: ConstantScoreQuery created with Filter made from TermDocs (you need to implement only DocIdSet / DocIdSetIterator, this is rally trivial as TermDocs implements next() and skipTo() methods) If TermDocs is not enough for you you could have a look at the BooleanFilter that will create only one (Open)BitSet per request if you feed it with TermDocs based Filters... Generally, it would be great to have BooleanQuery that Accepts Filters as clauses (infrastructure is now there thanks to Paul , see LUCENE-584) ----- Original Message ---- > From: John Patterson <[EMAIL PROTECTED]> > To: java-user@lucene.apache.org > Sent: Tuesday, 15 July, 2008 4:48:56 PM > Subject: Re: Mixing non scored an scored queries > > > > > Karl Wettin wrote: > > > > I think all you need to do is to create a custom query (sounds like > > you want a clone of TermQuery) that uses a Scorer that always return 1f. > > > > That sounds exactly like what is required. I imagine that would be quite > useful to have in the core project? > -- > View this message in context: > http://www.nabble.com/Mixing-non-scored-an-scored-queries-tp18460018p18467109.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] __________________________________________________________ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]