I'm a bit confused about what exactly is stored in folder and index and database, but how about you store the bookmark information in the same lucene index that you are using for the file data. One lucene document per folder, with fields something like
folder: /some/dir/somewhere bookmark: some_bookmark_value That way the bookmark info should always be in line with the indexed data. Oh, and I'd also try and stop the application from crashing! -- Ian. On Fri, Nov 28, 2008 at 12:09 PM, Ganesh <[EMAIL PROTECTED]> wrote: > I am using Lucene v2.4. I am indexing files from various folder and i have > to maintain a bookmark of what i have last indexed in each folder. > > Initially i thought to save the state in each respective folder. Index > Wrtier always has documents in memory and it commits in a intervals. In an > unexpected application crash, sometimes the last saved bookmark and the last > indexed document in the database is not matching. > > One another option is to keep the information in a same or different > database. > > I think many might have faced this situitation. > > Regards > Ganesh --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]