Uses of Class
org.apache.lucene.index.IndexWriter
Packages that use 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
Methods in org.apache.lucene.index with parameters of type IndexWriterModifier and TypeMethodDescriptionprotected abstract DirectoryReaderDirectoryReader.doOpenIfChanged(IndexWriter writer, boolean applyAllDeletes) Implement this method to supportDirectoryReader.openIfChanged(DirectoryReader,IndexWriter,boolean).protected final DirectoryReaderFilterDirectoryReader.doOpenIfChanged(IndexWriter writer, boolean applyAllDeletes) protected DirectoryReaderStandardDirectoryReader.doOpenIfChanged(IndexWriter writer, boolean applyAllDeletes) static DirectoryReaderDirectoryReader.open(IndexWriter writer) Open a near real time IndexReader from theIndexWriter.static DirectoryReaderDirectoryReader.open(IndexWriter writer, boolean applyAllDeletes, boolean writeAllDeletes) Expert: open a near real time IndexReader from theIndexWriter, controlling whether past deletions should be applied.static DirectoryReaderDirectoryReader.openIfChanged(DirectoryReader oldReader, IndexWriter writer) Expert: If there changes (committed or not) in theIndexWriterversus 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 DirectoryReaderDirectoryReader.openIfChanged(DirectoryReader oldReader, IndexWriter writer, boolean applyAllDeletes) Expert: Opens a new reader, if there are any changes, controlling whether past deletions should be applied.Constructors in org.apache.lucene.index with parameters of type IndexWriterModifierConstructorDescriptionReaderManager(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
Methods in org.apache.lucene.internal.tests with parameters of type IndexWriterModifier and TypeMethodDescriptionintIndexWriterAccess.getDocWriterThreadPoolSize(IndexWriter iw) IndexWriterAccess.getReader(IndexWriter iw, boolean applyDeletions, boolean writeAllDeletes) intIndexWriterAccess.getSegmentCount(IndexWriter iw) booleanIndexWriterAccess.isClosed(IndexWriter iw) booleanIndexWriterAccess.isDeleterClosed(IndexWriter iw) IndexWriterAccess.newestSegment(IndexWriter iw) IndexWriterAccess.segString(IndexWriter iw) -
Uses of IndexWriter in org.apache.lucene.search
Constructors in org.apache.lucene.search with parameters of type IndexWriterModifierConstructorDescriptionControlledRealTimeReopenThread(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.