[bt-devel] BibleTime Search

Troy A. Griffitts scribe at crosswire.org
Mon Dec 26 14:38:12 MST 2005


>>     -The search result is not in the biblical order.
>> I noticed a search() method which takes a Sort object. But I had no 
>> success to get it working. It crashed for me all the time, as I tried 
>> to add a new field "index" which stores the key position in the 
>> module. I'm suign 0.9.10.
> 
> 
> I noticed that too.  I wondered if it was in some sort of "score" order. 
>    Again, I hadn't looked at the CLucene options enought to tell.  It 
> might be useful to have several sorting options available here...

The return order is based on 'score' as you have speculated.  SWORD 
stores the score in the private user data area of the versekey for later 
retrieval.  You might get some insights by looking at the code in 
swmodule.cpp: 510


More information about the bt-devel mailing list