[sword-devel] Module index funny results

Nathan Parker nathan at hsnp.com
Mon Feb 28 13:27:37 MST 2005


I Usually Don't Work With Programming Codes. I Haven't Added All My Addins
To Sword Project Yet. I Usually Use Bible Software For 3 Things:
Fast, In Depth Bible Study
The Ability To Compare & Report About Various Technologies
For My PowerPoint Slides. 
Nathan

-----Original Message-----
From: sword-devel-bounces at crosswire.org
[mailto:sword-devel-bounces at crosswire.org] On Behalf Of Will Thimbleby
Sent: Monday, February 28, 2005 6:42 AM
To: SWORD Developers' Collaboration Forum
Subject: [sword-devel] Module index funny results

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



More information about the sword-devel mailing list