Uses of Class
org.apache.lucene.index.IndexWriter
Packages that use IndexWriter
Package
Description
Code to maintain and access indices.
Code to search indices.
- 
Uses of IndexWriter in org.apache.lucene.indexFields in org.apache.lucene.index declared as IndexWriterModifier and TypeFieldDescriptionprotected IndexWriterConcurrentMergeScheduler.writerIndexWriterthat owns this instance.Fields in org.apache.lucene.index with type parameters of type IndexWriterModifier and TypeFieldDescriptionprotected SetOnce<IndexWriter>MergePolicy.writerIndexWriterthat contains this instance.Methods in org.apache.lucene.index that return IndexWriterModifier and TypeMethodDescriptionTrackingIndexWriter.getIndexWriter()Return the wrappedIndexWriter.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 ConcurrentMergeScheduler.MergeThreadConcurrentMergeScheduler.getMergeThread(IndexWriter writer, MergePolicy.OneMerge merge) Create and return a new MergeThreadvoidConcurrentMergeScheduler.merge(IndexWriter writer) abstract voidMergeScheduler.merge(IndexWriter writer) Run the merges provided bygetNextMerge().voidNoMergeScheduler.merge(IndexWriter writer) voidSerialMergeScheduler.merge(IndexWriter writer) Just do the merges in sequence.static DirectoryReaderDirectoryReader.open(IndexWriter writer, boolean applyAllDeletes) Open a near real time IndexReader from theIndexWriter.static DirectoryReaderIndexReader.open(IndexWriter writer, boolean applyAllDeletes) Deprecated.static DirectoryReaderDirectoryReader.openIfChanged(DirectoryReader oldReader, IndexWriter writer, boolean applyAllDeletes) 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).voidMergePolicy.setIndexWriter(IndexWriter writer) Sets theIndexWriterto use by this merge policy.voidNoMergePolicy.setIndexWriter(IndexWriter writer) voidUpgradeIndexMergePolicy.setIndexWriter(IndexWriter writer) Constructors in org.apache.lucene.index with parameters of type IndexWriterModifierConstructorDescriptionMergeThread(IndexWriter writer, MergePolicy.OneMerge startMerge) Sole constructor.ReaderManager(IndexWriter writer, boolean applyAllDeletes) Creates and returns a new ReaderManager from the givenIndexWriter.TrackingIndexWriter(IndexWriter writer) Create aTrackingIndexWriterwrapping the providedIndexWriter.
- 
Uses of IndexWriter in org.apache.lucene.searchConstructors in org.apache.lucene.search with parameters of type IndexWriterModifierConstructorDescriptionSearcherManager(IndexWriter writer, boolean applyAllDeletes, SearcherFactory searcherFactory) Creates and returns a new SearcherManager from the givenIndexWriter.
DirectoryReader.open(IndexWriter,boolean)