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.search Code to search indices. -
-
Uses of IndexWriter in org.apache.lucene.index
Fields in org.apache.lucene.index declared as IndexWriter Modifier and Type Field Description protected IndexWriter
ConcurrentMergeScheduler. writer
IndexWriter
that owns this instance.Fields in org.apache.lucene.index with type parameters of type IndexWriter Modifier and Type Field Description protected SetOnce<IndexWriter>
MergePolicy. writer
IndexWriter
that contains this instance.Methods in org.apache.lucene.index that return IndexWriter Modifier and Type Method Description IndexWriter
TrackingIndexWriter. getIndexWriter()
Return the wrappedIndexWriter
.Methods in org.apache.lucene.index with parameters of type IndexWriter Modifier and Type Method Description protected abstract DirectoryReader
DirectoryReader. doOpenIfChanged(IndexWriter writer, boolean applyAllDeletes)
Implement this method to supportDirectoryReader.openIfChanged(DirectoryReader,IndexWriter,boolean)
.protected DirectoryReader
FilterDirectoryReader. doOpenIfChanged(IndexWriter writer, boolean applyAllDeletes)
protected ConcurrentMergeScheduler.MergeThread
ConcurrentMergeScheduler. getMergeThread(IndexWriter writer, MergePolicy.OneMerge merge)
Create and return a new MergeThreadvoid
ConcurrentMergeScheduler. merge(IndexWriter writer)
abstract void
MergeScheduler. merge(IndexWriter writer)
Run the merges provided bygetNextMerge()
.void
NoMergeScheduler. merge(IndexWriter writer)
void
SerialMergeScheduler. merge(IndexWriter writer)
Just do the merges in sequence.static DirectoryReader
DirectoryReader. open(IndexWriter writer, boolean applyAllDeletes)
Open a near real time IndexReader from theIndexWriter
.static DirectoryReader
IndexReader. open(IndexWriter writer, boolean applyAllDeletes)
Deprecated.static DirectoryReader
DirectoryReader. openIfChanged(DirectoryReader oldReader, IndexWriter writer, boolean applyAllDeletes)
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).void
MergePolicy. setIndexWriter(IndexWriter writer)
Sets theIndexWriter
to use by this merge policy.void
NoMergePolicy. setIndexWriter(IndexWriter writer)
void
UpgradeIndexMergePolicy. setIndexWriter(IndexWriter writer)
Constructors in org.apache.lucene.index with parameters of type IndexWriter Constructor Description MergeThread(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 aTrackingIndexWriter
wrapping the providedIndexWriter
. -
Uses of IndexWriter in org.apache.lucene.search
Constructors in org.apache.lucene.search with parameters of type IndexWriter Constructor Description SearcherManager(IndexWriter writer, boolean applyAllDeletes, SearcherFactory searcherFactory)
Creates and returns a new SearcherManager from the givenIndexWriter
.
-