[sword-devel] Q re search indexes
dmsmith at crosswire.org
Mon Feb 4 17:49:42 MST 2019
I think AndBible has committed a change to make creation of search indexes be the new mechanism.
> On Feb 4, 2019, at 7:10 PM, Troy A. Griffitts <scribe at crosswire.org> wrote:
> Ah, read more closely... You are asking about creating search indices for DOWNLOAD.
> There is no good answer to this. We don't officially support downloadable search indicies. Some frontends have chosen to support this on their own and they each have their own methods of doing such. My preference would be for them to discontinue this practice and create the search indices on demand on the user device, as all other frontend do. I understand the reasoning behind having these available for download when creating the search indices on older mobile devices 10 years ago wasn't the speediest operation, but now it likely will take less time than downloading on many mobile networks.
> So, in summary, what I described previously (below) will create the search index for a module. Where it's placed for some mobile apps to able to download varies and at least one mobile app requires it to be in a subfolder on crosswire.org-- not in your own download repo.
> On 2/4/19 5:01 PM, Troy A. Griffitts wrote:
>> Hi John,
>> SWORD support searching with or without a search index and has 3 methods for maintaining any search index. The implementation depends on which index system option is turned on at configuration time when building (default is clucene; ximian is also supported). The calls are:
>> virtual signed char SWModule::createSearchFramework(
>> void (*percent) (char, void *) = &nullPercent,
>> void *percentUserData = 0);
>> virtual void SWModule::deleteSearchFramework();
>> virtual bool SWModule::hasSearchFramework();
>> http://crosswire.org/svn/sword/trunk/include/swmodule.h <http://crosswire.org/svn/sword/trunk/include/swmodule.h>
>> There is a simple command line utility which does nothing more than call SWModule::createSearchFramework on a module which you might find bundled with whatever binaries you are using. The tool is called: mkfastmod
>> http://crosswire.org/svn/sword/trunk/utilities/mkfastmod.cpp <http://crosswire.org/svn/sword/trunk/utilities/mkfastmod.cpp>
>> On 2/4/19 4:32 PM, Dudeck, John wrote:
>>> Sorry for what might be a frequently asked question, but I can't find it on the Crosswire wiki:
>>> I am working on creating our own in-house repository. How are we supposed to create the search indexes for download?
>>> AndBible has a button for downloading the index, which works on some modules but not on others.
>>> I've looked on the various ftp repositories, but don't see anything that looks like search indexes.
>>> Can anybody give me a pointer on this?
>>> John Dudeck
>>> Programmer at Editions Cle Lyon, France
>>> john.dudeck at sim.org <mailto:john.dudeck at sim.org> john at editionscle.com <mailto:john at editionscle.com>
>>> "Most people know more about how the Vatican works than
>>> what programmers do." -- Alan Cooper
>>> sword-devel mailing list: sword-devel at crosswire.org <mailto:sword-devel at crosswire.org>
>>> http://www.crosswire.org/mailman/listinfo/sword-devel <http://www.crosswire.org/mailman/listinfo/sword-devel>
>>> Instructions to unsubscribe/change your settings at above page
>> sword-devel mailing list: sword-devel at crosswire.org <mailto:sword-devel at crosswire.org>
>> http://www.crosswire.org/mailman/listinfo/sword-devel <http://www.crosswire.org/mailman/listinfo/sword-devel>
>> Instructions to unsubscribe/change your settings at above page
> sword-devel mailing list: sword-devel at crosswire.org
> Instructions to unsubscribe/change your settings at above page
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the sword-devel