[sword-devel] Using the search API

Matthew Talbert ransom1982 at gmail.com
Fri Jul 29 23:03:13 MST 2011


On Sat, Jul 23, 2011 at 4:40 PM, Peter von Kaehne <refdoc at gmx.net> wrote:
> I have started to work more on the idea of mechanizing Strong encoding
> and TSK translation (both is quite similar in concept).
>
> I need to use create a database for each word and where it turns up in
> the Bible.
>
> My question:
>
> Is using the clucene search api (given that the text is pre-indexed)
> likely as fast as a lookup in an array? I.e. will I gain anything by
> storing search results for the next occasion the word turns up or is it
> likely just as good to simply rerun the clucene search, given that the
> module is already indexed?

I would guess it would be much faster to use an array. Even the
clucene index has to hit the hard drive (as far as I know) and that
would make it many times slower.

Matthew



More information about the sword-devel mailing list