[jsword-devel] JSword new index ?
Tonny Kohar
tonny.kohar at gmail.com
Tue May 12 19:33:59 MST 2009
Hi,
I saw your post on sword mailing list, regarding the upcoming lucene
2.9 which means changing index on jsword and lets the user know.
By looking at the jsword code it seems it is quite trivial (unless I
mistakenly see the things involved)
- it is already implemented on the o.c.j.index.lucene.IndexMetadata
(just is this only meant for lucene or more generic for all index)
- maybe add another status on IndexStatus and the corresponding listener
- on o.c.j.index.IndexManager add the methods isIndexLatest(Book) or
isNeedReindex(Book) which based the info from IndexMetadata as above
- and added some info regarding the index version on the index storage
folder during index creation. If the file is not there just assume the
index is invalid (need to reindex), if the file exist just read the
version info and compare it (whether it is latest or not)
Do I assume the things correctly or I mistakenly see the things involved ?
Cheers
Tonny Kohar
--
Alkitab Bible Study
imagine, design, create ...
http://www.kiyut.com
More information about the jsword-devel
mailing list