[jsword-devel] Bug in creating index of a bible

DM Smith dmsmith555 at yahoo.com
Thu Jul 29 09:57:47 MST 2004

I imagine that your are probably aware of this already, but indexing a 
bible is broken.

SerSearchEngine.generateSearchIndexImpl gets an iterator from a key that 
represents the entire book. This key is a BitwisePassage. And the 
iterator for it is a VerseIterator that returns Verse objects.

The SerSearchEngine then casts it to a Key, which throws a 
ClassCastException, since it is a Verse and a Verse is not a Key.

In looking at this a bit further, it seems that there is a fundamental 
disconnect between a Key and a Verse (and VerseBase) that needs to be fixed.

According to the javadoc for a Verse it is a Passage of a single verse. 
However, that is not its implementation. Verse extends Object not Passage.

Not sure how it should be implemented.


More information about the jsword-devel mailing list