DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=31785>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31785 DisjunctionScorer ------- Additional Comments From [EMAIL PROTECTED] 2004-11-08 20:58 ------- The tgz attachment can be extracted in the top directory of a current lucene working copy. This will add new files and overwrite some existing ones, see below. I tried this new code on an index of around 1.4 MB, and saw no difference in performance. In case someone else could report performance on something of more decent size I'd be happy to know how that went. New code, all under Apache Licence Version 2: Test for BooleanScorer2, with some example code overriding QueryParser to construct queries with BooleanQuery2: src/test/org/apache/lucene/search/TestBoolean2.java As BooleanQuery, but directly using BooleanScorer2: src/java/org/apache/lucene/search/BooleanQuery2.java Replacement for BooleanScorer, using the scorers below: src/java/org/apache/lucene/search/BooleanScorer2.java Counterpart of ConjunctionScorer, allowing a minimal nr of matchers: src/java/org/apache/lucene/search/DisjunctionSumScorer.java Helper for case of only prohibited subscorers: src/java/org/apache/lucene/search/NonMatchingScorer.java Extension to Scorer to allow coordination factor over multiple levels of subscorers: src/java/org/apache/lucene/search/NrMatchersScorer.java For required and prohibited subscorers: src/java/org/apache/lucene/search/ReqExclScorer.java For required and optional subscorers: src/java/org/apache/lucene/search/ReqOptSumScorer.java Some "Expert:" annotations may still be needed in the javadocs. Changes to existing code, also APL 2: Redirect BooleanQuery to BooleanScorer2 for testing with current Lucene tests. The tests pass with this modification. Not recommended for other purposes: src/java/org/apache/lucene/search/BooleanQuery.java Added some helping code for tests by TestBoolean2: src/test/org/apache/lucene/search/CheckHits.java ConjunctionScorer: explicit imports, extend NrMatchersScorer: src/java/org/apache/lucene/search/ConjunctionScorer.java Regards, Paul Elschot --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]