lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <>
Subject Re: svn commit: r331111 - /lucene/java/trunk/src/test/org/apache/lucene/search/
Date Mon, 07 Nov 2005 15:19:02 GMT
I think a non-static would be cleaner in this case, but people would
have to be more careful.
Isn't it true that the old (1.4) boolean scorer can deliver docs in
non-index order?  That means you can't use it as a component of
anything that requires in-order docs (the new scorer, or Paul's
proposed FilteredQuery that uses skipTo).

Other options:
 - expose the old scorer as a different query...  class BooleanQuery14
extends BooleanQuery
  (same compatibility drawbacks as above though)
 - don't expose the old scorer at all (or make access protected or

Now hiring --

> > The actual problem is that this flag in BooleanQuery is static, so an
> > even better solution would be to make it a normal attribute of each
> > BooleanQuery object.
> I agree.  Statics are often more trouble than they're worth.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message