Uses of Class
org.apache.lucene.index.IndexWriter
-
Packages that use IndexWriter Package Description org.apache.lucene.index org.apache.lucene.search org.elasticsearch.index.engine -
-
Uses of IndexWriter in org.apache.lucene.index
Methods in org.apache.lucene.index with parameters of type IndexWriter Modifier and Type Method Description protected voidConcurrentMergeScheduler. doMerge(IndexWriter writer, MergePolicy.OneMerge merge)Does the actual merge, by callingmerge(org.apache.lucene.index.MergePolicy.OneMerge)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)protected ConcurrentMergeScheduler.MergeThreadConcurrentMergeScheduler. getMergeThread(IndexWriter writer, MergePolicy.OneMerge merge)Create and return a new MergeThreadprotected booleanConcurrentMergeScheduler. maybeStall(IndexWriter writer)This is invoked byConcurrentMergeScheduler.merge(org.apache.lucene.index.IndexWriter, org.apache.lucene.index.MergeTrigger, boolean)to possibly stall the incoming thread when there are too many merges running or pending.voidConcurrentMergeScheduler. merge(IndexWriter writer, MergeTrigger trigger, boolean newMergesFound)abstract voidMergeScheduler. merge(IndexWriter writer, MergeTrigger trigger, boolean newMergesFound)Run the merges provided bygetNextMerge().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 IndexWriter Constructor Description MergeThread(IndexWriter writer, MergePolicy.OneMerge merge)Sole constructor. -
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, 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.elasticsearch.index.engine
Methods in org.elasticsearch.index.engine with parameters of type IndexWriter Modifier and Type Method Description protected voidInternalEngine. commitIndexWriter(IndexWriter writer, Translog translog, String syncId)Commits the specified index writer.
-