public interface IndexWriterProvider
IndexWriter
instance. After the required index modifications are done
(lucene documents are created, deleted, etc.), the IndexWriter.commit()
method must be invoked.
After the IndexWriter
is commited, the ReferenceManager.maybeRefresh()
should be invoked in order to
make the IndexSearcher
see the latest changes. The SearcherManager
should be
obtained by the IndexSearcherProvider
.
The application uses a single instance of the IndexWriter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.index.IndexWriter |
getIndexWriter()
Method returns an instance of the Lucene
IndexWriter . |
static final java.lang.String NAME