Hi
Lucene 8.6.3
In a prototype application I build a Lucene index with a single process and
query it with another. Every operation is a new process. When the data
changes I simply recreate the index and future searches pick up the new
index. Of course performance is sub-optimal.
So I am changing this so that after the initial build subsequent data
changes will update the index rather than rebuilding the entire index.
I am also changing the search method so that I have a single service which
creates an IndexReader and IndexSearcher at startup, and reads and responds
to search requests through a socket.
I know that an existing index can be maintained with selective deletions and
additions, but I am not sure if the process holding the reader and searcher
objects can continue running without having to close and recreate them when
the index is modified.
Is it safe to do that?
cheers
T
Lucene 8.6.3
In a prototype application I build a Lucene index with a single process and
query it with another. Every operation is a new process. When the data
changes I simply recreate the index and future searches pick up the new
index. Of course performance is sub-optimal.
So I am changing this so that after the initial build subsequent data
changes will update the index rather than rebuilding the entire index.
I am also changing the search method so that I have a single service which
creates an IndexReader and IndexSearcher at startup, and reads and responds
to search requests through a socket.
I know that an existing index can be maintained with selective deletions and
additions, but I am not sure if the process holding the reader and searcher
objects can continue running without having to close and recreate them when
the index is modified.
Is it safe to do that?
cheers
T