[sword-devel] Module index funny results

Will Thimbleby will at thimbleby.net
Mon Feb 28 10:07:39 MST 2005


All the ones I've tried so-far: akjv, kjv, web, isv. It does, however, 
only seem to happen with NT verses.

On 28 Feb 2005, at 1:18 pm, DM Smith wrote:

> Which module?
>
> Will Thimbleby wrote:
>
>> Hi, Can someone help me with this code:
>>
>>
>> sword::VerseKey textkey = "matt3.16";
>> module->setKey(textkey);
>> NSLog(@"%d %@",module->Index(),fromUTF8((char 
>> *)module->getKey()->getText()));
>> module->Index(module->Index());
>> NSLog(@"%d %@",module->Index(),fromUTF8((char 
>> *)module->getKey()->getText()));
>>
>> which prints:
>>
>> 24124 Matthew 3:16
>> 24065 Matthew 1:7
>>
>> I would have though module->Index(module->Index()); should change 
>> nothing. I'm trying to use the module's index to create lucene 
>> indexes, so that I can properly sort the results easily. I've been 
>> hacking lucene quite a bit and will post my thoughts later, I just 
>> need to fix this.
>>
>> cheers --Will
>>
>> _______________________________________________
>> sword-devel mailing list
>> sword-devel at crosswire.org
>> http://www.crosswire.org/mailman/listinfo/sword-devel
>>
> _______________________________________________
> sword-devel mailing list
> sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
>



More information about the sword-devel mailing list