lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 31785] - DisjunctionScorer
Date Sun, 12 Dec 2004 18:29:03 GMT
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





------- Additional Comments From paul.elschot@xs4all.nl  2004-12-12 19:29 -------
Created an attachment (id=13739)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=13739&action=view)
The replacement for BooleanScorer built into BooleanQuery

Adding BooleanScorer2 to Lucene, 12 Dec 2004.

The previous version of 8 Nov 2004 also contained BooleanQuery2,
this is now merged into BooleanQuery.


New code, all under Apache Licence Version2, mostly unchanged
from 8 November 2004:

Note: some "Expert:" annotations may still be needed in the javadocs.

Test for BooleanScorer, with some example code
using both 1.4 scorer and new BooleanScorer2:
src/test/org/apache/lucene/search/TestBoolean2.java

Alternative 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, this could be merged
into the current Scorer with a default of 1 for nrMatchers():
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


Changes to existing code, all three changed from
the previous version of 8 November 2004: 

Redirect BooleanQuery to BooleanScorer2 under
control of static methods setUseScorer14 and getUseScorer14,
default using BooleanScorer2, as requested by Doug:
src/java/org/apache/lucene/search/BooleanQuery.java

Added some helping code for tests by TestBoolean2,
This uses the setUseScorer14 method to test both versions:
src/test/org/apache/lucene/search/CheckHits.java

ConjunctionScorer: explicit imports, extend NrMatchersScorer:
src/java/org/apache/lucene/search/ConjunctionScorer.java


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message