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 35823] - [PATCH] BooleanScorer2 ArrayIndexOutOfBoundsException + alternative NearSpans
Date Sun, 21 Aug 2005 19:50:01 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=35823>.
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=35823





------- Additional Comments From jakarta@ehatchersolutions.com  2005-08-21 21:50 -------
Darn - I wish there was an "undo" on here!  :)  Sorry about that.  Sure enough, I had messed
up the 
conversion from assert to AssertionError.  The conversion now is this in DisjunctionSumScorer:

          if (top.doc() <= currentDoc)
                throw new AssertionError("Scorer: " + top
                   + "\n advanced from doc " + currentDoc
                   + " to doc " + top.doc()
                   + " after next() returned true.");

The patched TestSpans passes.  However with my test case I'm getting this:

java.lang.AssertionError: Scorer: org.apache.lucene.search.spans.SpanScorer@73305c
 advanced from doc 112 to doc 112 after next() returned true.
	at org.apache.lucene.search.DisjunctionSumScorer.advanceAfterCurrent
(DisjunctionSumScorer.java:153)
	at org.apache.lucene.search.DisjunctionSumScorer.skipTo(DisjunctionSumScorer.java:220)
	at org.apache.lucene.search.BooleanScorer2.skipTo(BooleanScorer2.java:345)
	at org.apache.lucene.search.ConjunctionScorer.doNext(ConjunctionScorer.java:56)
	at org.apache.lucene.search.ConjunctionScorer.next(ConjunctionScorer.java:51)
	at org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:288)
	at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:102)


-- 
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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message