Uses of Class
org.apache.lucene.index.IndexWriter
Packages that use IndexWriter
Package
Description
Taxonomy of Categories.
Taxonomy index implementation using on top of a Directory.
Code to maintain and access indices.
Internal bridges to package-private internals, for use by the lucene test framework only.
Misc index tools and index support.
Monitoring framework
Code to search indices.
Analyzer based autosuggest.
-
Uses of IndexWriter in org.apache.lucene.facet.taxonomy
Methods in org.apache.lucene.facet.taxonomy with parameters of type IndexWriterModifier and TypeMethodDescriptionstatic void
TaxonomyMergeUtils.merge
(Directory srcIndexDir, Directory srcTaxoDir, DirectoryTaxonomyWriter.OrdinalMap map, IndexWriter destIndexWriter, DirectoryTaxonomyWriter destTaxoWriter, FacetsConfig srcConfig) Merges the given taxonomy and index directories and commits the changes to the given writers.Constructors in org.apache.lucene.facet.taxonomy with parameters of type IndexWriterModifierConstructorDescriptionSearcherTaxonomyManager
(IndexWriter writer, boolean applyAllDeletes, SearcherFactory searcherFactory, DirectoryTaxonomyWriter taxoWriter) Expert: creates near-real-time searcher and taxonomy reader from the corresponding writers, controlling whether deletes should be applied.SearcherTaxonomyManager
(IndexWriter writer, SearcherFactory searcherFactory, DirectoryTaxonomyWriter taxoWriter) Creates near-real-time searcher and taxonomy reader from the corresponding writers. -
Uses of IndexWriter in org.apache.lucene.facet.taxonomy.directory
Fields in org.apache.lucene.facet.taxonomy.directory declared as IndexWriterMethods in org.apache.lucene.facet.taxonomy.directory that return IndexWriterModifier and TypeMethodDescription(package private) final IndexWriter
DirectoryTaxonomyWriter.getInternalIndexWriter()
Used byDirectoryTaxonomyReader
to support NRT.protected IndexWriter
DirectoryTaxonomyWriter.openIndexWriter
(Directory directory, IndexWriterConfig config) Open internal index writer, which contains the taxonomy data.Methods in org.apache.lucene.facet.taxonomy.directory with parameters of type IndexWriterModifier and TypeMethodDescriptionprotected DirectoryReader
DirectoryTaxonomyReader.openIndexReader
(IndexWriter writer) Open theDirectoryReader
from thisIndexWriter
. -
Uses of IndexWriter in org.apache.lucene.index
Fields in org.apache.lucene.index declared as IndexWriterModifier and TypeFieldDescriptionprivate final IndexWriter
IndexFileDeleter.writer
private final IndexWriter
IndexWriter.AddIndexesMergeSource.writer
private final IndexWriter
IndexWriter.EventQueue.writer
private final IndexWriter
IndexWriter.IndexWriterMergeSource.writer
The field for thewriter
record component.(package private) final IndexWriter
StandardDirectoryReader.writer
Fields in org.apache.lucene.index with type parameters of type IndexWriterMethods in org.apache.lucene.index that return IndexWriterModifier and TypeMethodDescriptionIndexWriter.IndexWriterMergeSource.writer()
Returns the value of thewriter
record component.Methods in org.apache.lucene.index with parameters of type IndexWriterModifier 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.(package private) static StandardDirectoryReader
StandardDirectoryReader.open
(IndexWriter writer, IOFunction<SegmentCommitInfo, SegmentReader> readerFunction, SegmentInfos infos, boolean applyAllDeletes, boolean writeAllDeletes) Used by near real-time searchstatic 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.void
IndexWriter.Event.process
(IndexWriter writer) Processes the event.(package private) IndexWriterConfig
IndexWriterConfig.setIndexWriter
(IndexWriter writer) Sets theIndexWriter
this config is attached to.private void
BufferedUpdatesStream.waitApply
(Set<FrozenBufferedUpdates> waitFor, IndexWriter writer) (package private) void
BufferedUpdatesStream.waitApplyAll
(IndexWriter writer) Waits for all in-flight packets, which are already being resolved concurrently by indexing threads, to finish.(package private) void
BufferedUpdatesStream.waitApplyForMerge
(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 IndexWriterModifierConstructorDescriptionAddIndexesMergeSource
(IndexWriter writer) (package private)
EventQueue
(IndexWriter writer) IndexFileDeleter
(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.private
IndexWriterMergeSource
(IndexWriter writer) Creates an instance of aIndexWriterMergeSource
record class.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.(package private)
StandardDirectoryReader
(Directory directory, LeafReader[] readers, IndexWriter writer, SegmentInfos sis, Comparator<LeafReader> leafSorter, boolean applyAllDeletes, boolean writeAllDeletes) package private constructor, called only from static open() methods. -
Uses of IndexWriter in org.apache.lucene.internal.tests
Methods in org.apache.lucene.internal.tests with parameters of type IndexWriterModifier 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.misc.index
Methods in org.apache.lucene.misc.index with parameters of type IndexWriterModifier and TypeMethodDescriptionprivate static void
IndexRearranger.addOneSegment
(IndexWriter writer, IndexReader reader, IndexRearranger.DocumentSelector selector) private static void
IndexRearranger.applyDeletes
(IndexWriter writer, IndexReader reader, IndexRearranger.DocumentSelector selector, ExecutorService executor) private static void
IndexRearranger.applyDeletesToOneSegment
(IndexWriter writer, CodecReader segmentReader, IndexRearranger.DocumentSelector selector) private static void
IndexRearranger.createRearrangedIndex
(IndexWriter writer, IndexReader reader, List<IndexRearranger.DocumentSelector> selectors, ExecutorService executor) Create the rearranged index as described by the segment selectors. -
Uses of IndexWriter in org.apache.lucene.monitor
Fields in org.apache.lucene.monitor declared as IndexWriterMethods in org.apache.lucene.monitor that return IndexWriterMethods in org.apache.lucene.monitor with parameters of type IndexWriterModifier and TypeMethodDescriptionprivate LeafReader
DocumentBatch.MultiDocumentBatch.build
(IndexWriter writer, Document... docs) -
Uses of IndexWriter in org.apache.lucene.search
Fields in org.apache.lucene.search declared as IndexWriterConstructors 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
. -
Uses of IndexWriter in org.apache.lucene.search.suggest.analyzing
Fields in org.apache.lucene.search.suggest.analyzing declared as IndexWriterModifier and TypeFieldDescriptionprotected IndexWriter
AnalyzingInfixSuggester.writer
Used for ongoing NRT additions/updates.