While working on index download for the next release of And Bible I have had some questions and would be grateful for any input either from the Lucene perspective or from perspective of doing searches in foreign language modules, especially Chinese.<div>
<br></div>
<div>The current state of code in svn is that you can download search indexes from the same repository used by PocketSword but the option to generate an index is still available. The main question I have is with regard to potential compatibility problems using clucene indexes in And Bible. A related issue is the size of the jar required to support Chinese searches.</div>
<div><br></div><div>Compatibility Questions:</div><div><div><ul><li>Downloadable indexes were generated by clucene (C+) not Lucene (JSword). To what extent are they compatible?</li>
<li>The existing And Bible index code uses the language specific Analyzer as defined by JSword. All my (English) tests show that clucene indexes work fine but I can't test foreign language searches.</li><li>During initial development And Bible could not reliably use BibleDesktop (JSword app) generated indexes. I still don't know why.</li>
<li>Is there a way to find which Analyzer was used to generate a specific index because the same Analyzer must be used for creation and searching.</li><li>I have not actually seen any search problems for a long time using either clucene or AndBible generated indexes but I only use English modules.</li>
</ul><div>Chinese search support</div><ul>
<li>The Chinese Analyzer is half the size of the whole of And Bible. Removing it would have a large affect on app size. What affect does it have on searches?</li>
<li>Difficult to test foreign language searches - especially Chinese.</li></ul><div>I have had a couple of thoughts. The first may be the way of least technical resistance.</div></div><div><br></div>
<div>
<b>Approach 1</b></div><div>Use clucene generated indexes and ignore language specific Lucene analyzers. I think Sword does this.</div><div>Advantages</div><div><ul><li>Much smaller application - important on a mobile but less important now Android 2.2 can run apps from SD card</li>
<li>Index download repository already exists</li>
</ul><div>Disadvantages</div><div><ul><li>How good is foreign language searching using clucene indexes? I can't tell.</li></ul></div><div><b>Approach 2</b></div></div><div>Use JSword Lucene language specific indexes.</div>
<div>Advantages</div><div><ul><li>Better search support for foreign languages. Can somebody give examples of difference?</li></ul><div>Disadvantages</div></div><div><ul><li>Android apk application file is twice as large</li>
<li>Need to create a new repository of JSword generated indexes</li></ul><div>Thanks</div></div><div>Martin</div>
</div>