I believe it's a best practice to only run one IndexWriter and reuse it throughout an application. When I want to create only one item in C#, I typically use a static constructor and static fields. Is this recommended with IndexWriter?
If so, then I'm missing something basic. Documents seem to only appear in my index after calling indexWriter.Close(). So, once an index is built I don't see an easy way to create another IndexWriter as a static field to index more documents as they're created by the application. Once indexWriter.Close() is called, it seems to be game over. Alternatively, I could create a second application that simply indexes documents as they're placed on a queue by the first application. That second application can just wake up once a minute, do its job, and then quit. The first app is a web app, if that matters. Any basic guidance would be welcomed. Bob
