RE: Calling indexWriter.close() in web app

2007-07-11 Thread vcampa
Steinert, Fabian wrote: > > Hi, > you do not need to writer.close() the IndexWriter at all to make changes > visible. > When IndexWriter is constructed with autoCommit = true flag set, > calling writer.flush() will do. > Ok, but what about the write.lock? IndexWriter releases its write.lock on

Calling indexWriter.close() in web app

2007-07-09 Thread vcampa
I'm developing a web app with struts that need to embed lucene functionalities. I need that my app adds documents to the index after that a document is added (documents are very few, but of large size). I read that i have to use a single instance of indexwriter to edit the index. Suppose i use a s