Hello Ashley, You can read/search while modifying the index, but you have to ensure only one thread or only one process is modifying an index at any given time. Both IndexReader and IndexWriter can be used to modify an index. The former to delete Documents and the latter to add them. You have to ensure these two operations don't overlap. c.f. http://www.lucenebook.com/search?query=concurrent
Otis --- Ashley Steigerwalt <[EMAIL PROTECTED]> wrote: > I am a little fuzzy on the thread-safeness of Lucene, or maybe just > java. > From what I understand, and correct me if I'm wrong, Lucene takes > care of > concurrency issues and it is ok to run a query while writing to an > index. > > My question is, does this still hold true if the reader and writer > are being > executed as separate programs? I have a cron job that will update > the index > periodically. I also have a search application on a web form. Is > this going > to cause trouble if someone runs a query while the indexer is > updating? > > Ashley > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]