Uses of Class
org.apache.lucene.index.IndexWriter
-
Packages that use IndexWriter Package Description org.apache.lucene.index Code to maintain and access indices.org.apache.lucene.monitor Monitoring frameworkorg.apache.lucene.search Code to search indices.org.apache.lucene.search.suggest.analyzing Analyzer based autosuggest. -
-
Uses of IndexWriter in org.apache.lucene.index
Fields in org.apache.lucene.index declared as IndexWriter Modifier and Type Field Description private IndexWriterIndexFileDeleter. writerprivate IndexWriterIndexWriter.EventQueue. writerprivate IndexWriterIndexWriter.IndexWriterMergeSource. writer(package private) IndexWriterStandardDirectoryReader. writerFields in org.apache.lucene.index with type parameters of type IndexWriter Modifier and Type Field Description private SetOnce<IndexWriter>IndexWriterConfig. writerMethods in org.apache.lucene.index with parameters of type IndexWriter Modifier and Type Method Description protected abstract DirectoryReaderDirectoryReader. doOpenIfChanged(IndexWriter writer, boolean applyAllDeletes)Implement this method to supportDirectoryReader.openIfChanged(DirectoryReader,IndexWriter,boolean).protected 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.(package private) static StandardDirectoryReaderStandardDirectoryReader. open(IndexWriter writer, IOUtils.IOFunction<SegmentCommitInfo,SegmentReader> readerFunction, SegmentInfos infos, boolean applyAllDeletes, boolean writeAllDeletes)Used by near real-time searchstatic 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.voidIndexWriter.Event. process(IndexWriter writer)Processes the event.(package private) IndexWriterConfigIndexWriterConfig. setIndexWriter(IndexWriter writer)Sets theIndexWriterthis config is attached to.private voidBufferedUpdatesStream. waitApply(java.util.Set<FrozenBufferedUpdates> waitFor, IndexWriter writer)(package private) voidBufferedUpdatesStream. waitApplyAll(IndexWriter writer)Waits for all in-flight packets, which are already being resolved concurrently by indexing threads, to finish.(package private) voidBufferedUpdatesStream. waitApplyForMerge(java.util.List<SegmentCommitInfo> mergeInfos, IndexWriter writer)Waits only for those in-flight packets that apply to these merge segments.Constructors in org.apache.lucene.index with parameters of type IndexWriter Constructor Description EventQueue(IndexWriter writer)IndexFileDeleter(java.lang.String[] files, Directory directoryOrig, Directory directory, IndexDeletionPolicy policy, SegmentInfos segmentInfos, InfoStream infoStream, IndexWriter writer, boolean initialIndexExists, boolean isReaderInit)Initialize the deleter: find all previous commits in the Directory, incref the files they reference, call the policy to let it delete commits.IndexWriterMergeSource(IndexWriter writer)ReaderManager(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.StandardDirectoryReader(Directory directory, LeafReader[] readers, IndexWriter writer, SegmentInfos sis, boolean applyAllDeletes, boolean writeAllDeletes)called only from static open() methods -
Uses of IndexWriter in org.apache.lucene.monitor
Fields in org.apache.lucene.monitor declared as IndexWriter Modifier and Type Field Description private IndexWriterQueryIndex. writerMethods in org.apache.lucene.monitor that return IndexWriter Modifier and Type Method Description IndexWriterMonitorConfiguration. buildIndexWriter()Methods in org.apache.lucene.monitor with parameters of type IndexWriter Modifier and Type Method Description private LeafReaderDocumentBatch.MultiDocumentBatch. build(IndexWriter writer, Document... docs) -
Uses of IndexWriter in org.apache.lucene.search
Fields in org.apache.lucene.search declared as IndexWriter Modifier and Type Field Description private IndexWriterControlledRealTimeReopenThread. writerConstructors in org.apache.lucene.search with parameters of type IndexWriter Constructor Description ControlledRealTimeReopenThread(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. -
Uses of IndexWriter in org.apache.lucene.search.suggest.analyzing
Fields in org.apache.lucene.search.suggest.analyzing declared as IndexWriter Modifier and Type Field Description protected IndexWriterAnalyzingInfixSuggester. writerUsed for ongoing NRT additions/updates.
-