Uses of Class
org.apache.lucene.index.IndexWriter
Package
Description
Code to maintain and access indices.
Internal bridges to package-private internals, for use by the lucene test framework only.
Code to search indices.
-
Uses of IndexWriter in org.apache.lucene.index
Modifier and TypeMethodDescriptionprotected abstract DirectoryReader
DirectoryReader.doOpenIfChanged
(IndexWriter writer, boolean applyAllDeletes) Implement this method to supportDirectoryReader.openIfChanged(DirectoryReader,IndexWriter,boolean)
.protected final DirectoryReader
FilterDirectoryReader.doOpenIfChanged
(IndexWriter writer, boolean applyAllDeletes) protected DirectoryReader
StandardDirectoryReader.doOpenIfChanged
(IndexWriter writer, boolean applyAllDeletes) static DirectoryReader
DirectoryReader.open
(IndexWriter writer) Open a near real time IndexReader from theIndexWriter
.static DirectoryReader
DirectoryReader.open
(IndexWriter writer, boolean applyAllDeletes, boolean writeAllDeletes) Expert: open a near real time IndexReader from theIndexWriter
, controlling whether past deletions should be applied.static DirectoryReader
DirectoryReader.openIfChanged
(DirectoryReader oldReader, IndexWriter writer) Expert: If there changes (committed or not) in theIndexWriter
versus what the provided reader is searching, then open and return a new IndexReader searching both committed and uncommitted changes from the writer; else, return null (though, the current implementation never returns null).static DirectoryReader
DirectoryReader.openIfChanged
(DirectoryReader oldReader, IndexWriter writer, boolean applyAllDeletes) Expert: Opens a new reader, if there are any changes, controlling whether past deletions should be applied.ModifierConstructorDescriptionReaderManager
(IndexWriter writer) Creates and returns a new ReaderManager from the givenIndexWriter
.ReaderManager
(IndexWriter writer, boolean applyAllDeletes, boolean writeAllDeletes) Expert: creates and returns a new ReaderManager from the givenIndexWriter
, controlling whether past deletions should be applied. -
Uses of IndexWriter in org.apache.lucene.internal.tests
Modifier and TypeMethodDescriptionint
IndexWriterAccess.getDocWriterThreadPoolSize
(IndexWriter iw) IndexWriterAccess.getReader
(IndexWriter iw, boolean applyDeletions, boolean writeAllDeletes) int
IndexWriterAccess.getSegmentCount
(IndexWriter iw) boolean
IndexWriterAccess.isClosed
(IndexWriter iw) boolean
IndexWriterAccess.isDeleterClosed
(IndexWriter iw) IndexWriterAccess.newestSegment
(IndexWriter iw) IndexWriterAccess.segString
(IndexWriter iw) -
Uses of IndexWriter in org.apache.lucene.search
ModifierConstructorDescriptionControlledRealTimeReopenThread
(IndexWriter writer, ReferenceManager<T> manager, double targetMaxStaleSec, double targetMinStaleSec) Create ControlledRealTimeReopenThread, to periodically reopen theReferenceManager
.SearcherManager
(IndexWriter writer, boolean applyAllDeletes, boolean writeAllDeletes, SearcherFactory searcherFactory) Expert: creates and returns a new SearcherManager from the givenIndexWriter
, controlling whether past deletions should be applied.SearcherManager
(IndexWriter writer, SearcherFactory searcherFactory) Creates and returns a new SearcherManager from the givenIndexWriter
.