<div dir="ltr">My updates @ <a href="https://github.com/crosswire/jsword/pull/79">https://github.com/crosswire/jsword/pull/79</a><div><br><div><div>DM,</div><div>In Bibledesktop, <b>IndexManager.needsReindexing()</b> check can be used during a upgrade, to prompt &quot;Index outdated message&quot;. Current isIndexed() works well for &quot;Enable search&quot;, but if you combine both this usecase using &quot;Reenable Search&quot;, then it needs to be checked everytime user does a query.</div>
<div>For major index upgrade : In Jsword we change LatestIndexVersion (in IndexMetadata.properties packaged in JS), and if FrontEnds use the IndexManager.needsReindexing, then it can be used to prompt reindexing.</div></div>
</div><div><br></div><div><div>Martin,</div><div> If AB wants to stays at current indexing schema which is 1.2(or another light weight version), I am thinking you can maintain a custom IndexMetadata.properties for your app , with your compatible latest version values. </div>
<div> For downloading you can get the version using <b> IndexMetadata.getLatestIndexVersion()</b>, download using your url, then update the InstalledVersion property on the client machine using InstalledIndex.instance().storeInstalledIndexMetadata(properymap); If it is generic code for all downloadIndex usages, this can be added to download-index method of LuceneIndexManager.</div>
<div> If you save the InstalledVersion on clients phone, then you can do IndexOutdated-check using IndexManager.needsReindexing(). You can do something similar to this method LuceneIndexManagerTest.createOrUpgradeIndex(book).</div>
</div><div><br></div><div>Chris,</div><div>You may be able to maintain a custom IndexMetadata.properties for STEP&#39;s own indices and prompt reindexing on upgrade.<br></div><div><br></div><div>All feedback is appreciated.</div>
<div>cheers</div><div>/sijo</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 23, 2014 at 1:04 PM, Martin Denham <span dir="ltr">&lt;<a href="mailto:mjdenham@gmail.com" target="_blank">mjdenham@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Sijo,<br></div><div><br></div><div>I am trying to create an appropriate downloadIndex method and so am looking for the right <b>indexVersion</b> number to add to an index download url a bit like:</div>

<div>   {indexDownloadUrl}/{indexVersion}/{moduleIndex}</div><div>e.g.</div><div>   <a href="http://www.crosswire.org/and-bible/jsword/search/1.1/esv-1.0.1.zip" target="_blank">www.crosswire.org/and-bible/jsword/search/1.1/esv-1.0.1.zip</a><br>

</div><div class="gmail_extra"><br></div><div class="gmail_extra">so for And Bible it may well be e.g. 1.1 but STEP 1.2 but I don&#39;t know where the appropriate target index version will be stored.  It looked like it might be IndexMetaData.<span style="font-family:arial,sans-serif;font-size:13px">getInstalledIndexVersion().</span></div>

<div class="gmail_extra"><font face="arial, sans-serif"><br></font></div><div class="gmail_extra"><font face="arial, sans-serif">Or maybe I need to wait a bit until you have done some more work on the index framework.</font></div>
<span class="HOEnZb"><font color="#888888">
<div class="gmail_extra"><font face="arial, sans-serif"><br></font></div><div class="gmail_extra"><font face="arial, sans-serif">Martin<br></font><br></div></font></span></div>
<br>_______________________________________________<br>
jsword-devel mailing list<br>
<a href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a><br>
<a href="http://www.crosswire.org/mailman/listinfo/jsword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards,<br>Sijo
</div>