Package | Description |
---|---|
org.apache.lucene.benchmark.byTask |
Benchmarking Lucene By Tasks
|
org.apache.lucene.benchmark.byTask.tasks |
Extendable benchmark tasks.
|
org.apache.lucene.facet.taxonomy |
Taxonomy of Categories.
|
org.apache.lucene.facet.taxonomy.directory |
Taxonomy index implementation using on top of a Directory.
|
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.replicator |
Files replication framework
|
org.apache.lucene.replicator.nrt |
Near-real-time replication framework
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.suggest.analyzing |
Analyzer based autosuggest.
|
org.apache.lucene.util |
Some utility classes.
|
Modifier and Type | Method and Description |
---|---|
IndexWriter |
PerfRunData.getIndexWriter() |
Modifier and Type | Method and Description |
---|---|
void |
PerfRunData.setIndexWriter(IndexWriter indexWriter) |
Modifier and Type | Method and Description |
---|---|
static IndexWriter |
CreateIndexTask.configureWriter(Config config,
PerfRunData runData,
IndexWriterConfig.OpenMode mode,
IndexCommit commit) |
Modifier and Type | Method and Description |
---|---|
static 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.
|
Constructor and Description |
---|
SearcherTaxonomyManager(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.
|
Modifier and Type | Method and Description |
---|---|
protected IndexWriter |
DirectoryTaxonomyWriter.openIndexWriter(Directory directory,
IndexWriterConfig config)
Open internal index writer, which contains the taxonomy data.
|
Modifier and Type | Method and Description |
---|---|
protected DirectoryReader |
DirectoryTaxonomyReader.openIndexReader(IndexWriter writer)
Open the
DirectoryReader from this IndexWriter . |
Modifier and Type | Field and Description |
---|---|
IndexWriter |
RandomIndexWriter.w |
protected IndexWriter |
ThreadedIndexingAndSearchingTestCase.writer |
Modifier and Type | Method and Description |
---|---|
static IndexWriter |
RandomIndexWriter.mockIndexWriter(Directory dir,
IndexWriterConfig conf,
java.util.Random r)
Returns an indexwriter that randomly mixes up thread scheduling (by yielding at test points)
|
static IndexWriter |
RandomIndexWriter.mockIndexWriter(java.util.Random r,
Directory dir,
IndexWriterConfig conf,
RandomIndexWriter.TestPoint testPoint)
Returns an indexwriter that enables the specified test point
|
Modifier and Type | Method and Description |
---|---|
protected void |
ConcurrentMergeScheduler.doMerge(IndexWriter writer,
MergePolicy.OneMerge merge)
Does the actual merge, by calling
merge(org.apache.lucene.index.MergePolicy.OneMerge) |
protected abstract DirectoryReader |
DirectoryReader.doOpenIfChanged(IndexWriter writer,
boolean applyAllDeletes)
Implement this method to support
DirectoryReader.openIfChanged(DirectoryReader,IndexWriter,boolean) . |
protected DirectoryReader |
StandardDirectoryReader.doOpenIfChanged(IndexWriter writer,
boolean applyAllDeletes) |
protected DirectoryReader |
FilterDirectoryReader.doOpenIfChanged(IndexWriter writer,
boolean applyAllDeletes) |
protected ConcurrentMergeScheduler.MergeThread |
ConcurrentMergeScheduler.getMergeThread(IndexWriter writer,
MergePolicy.OneMerge merge)
Create and return a new MergeThread
|
protected boolean |
ConcurrentMergeScheduler.maybeStall(IndexWriter writer)
This is invoked by
ConcurrentMergeScheduler.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. |
abstract void |
MergeScheduler.merge(IndexWriter writer,
MergeTrigger trigger,
boolean newMergesFound)
Run the merges provided by
getNextMerge() . |
void |
NoMergeScheduler.merge(IndexWriter writer,
MergeTrigger trigger,
boolean newMergesFound) |
void |
SerialMergeScheduler.merge(IndexWriter writer,
MergeTrigger trigger,
boolean newMergesFound)
Just do the merges in sequence.
|
void |
ConcurrentMergeScheduler.merge(IndexWriter writer,
MergeTrigger trigger,
boolean newMergesFound) |
static DirectoryReader |
DirectoryReader.open(IndexWriter writer)
Open a near real time IndexReader from the
IndexWriter . |
static DirectoryReader |
DirectoryReader.open(IndexWriter writer,
boolean applyAllDeletes,
boolean writeAllDeletes)
Expert: open a near real time IndexReader from the
IndexWriter ,
controlling whether past deletions should be applied. |
static DirectoryReader |
DirectoryReader.openIfChanged(DirectoryReader oldReader,
IndexWriter writer)
Expert: If there changes (committed or not) in the
IndexWriter 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.
|
Constructor and Description |
---|
MergeThread(IndexWriter writer,
MergePolicy.OneMerge merge)
Sole constructor.
|
ReaderManager(IndexWriter writer)
Creates and returns a new ReaderManager from the given
IndexWriter . |
ReaderManager(IndexWriter writer,
boolean applyAllDeletes,
boolean writeAllDeletes)
Expert: creates and returns a new ReaderManager from the given
IndexWriter , controlling whether past deletions should be applied. |
Modifier and Type | Method and Description |
---|---|
IndexWriter |
IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter.getIndexWriter()
Returns the
IndexWriter used by this DirectoryTaxonomyWriter . |
protected IndexWriter |
IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter.openIndexWriter(Directory directory,
IndexWriterConfig config) |
Constructor and Description |
---|
IndexAndTaxonomyRevision(IndexWriter indexWriter,
IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter taxoWriter)
Constructor over the given
IndexWriter . |
IndexRevision(IndexWriter writer)
Constructor over the given
IndexWriter . |
Modifier and Type | Field and Description |
---|---|
protected IndexWriter |
PrimaryNode.writer |
Constructor and Description |
---|
PrimaryNode(IndexWriter writer,
int id,
long primaryGen,
long forcePrimaryVersion,
SearcherFactory searcherFactory,
java.io.PrintStream printStream) |
Modifier and Type | Field and Description |
---|---|
IndexWriter |
ShardSearchingTestBase.NodeState.writer |
Constructor and Description |
---|
ControlledRealTimeReopenThread(IndexWriter writer,
ReferenceManager<T> manager,
double targetMaxStaleSec,
double targetMinStaleSec)
Create ControlledRealTimeReopenThread, to periodically
reopen the a
ReferenceManager . |
SearcherManager(IndexWriter writer,
boolean applyAllDeletes,
boolean writeAllDeletes,
SearcherFactory searcherFactory)
Expert: creates and returns a new SearcherManager from the given
IndexWriter , controlling whether past deletions should be applied. |
SearcherManager(IndexWriter writer,
SearcherFactory searcherFactory)
Creates and returns a new SearcherManager from the given
IndexWriter . |
Modifier and Type | Field and Description |
---|---|
protected IndexWriter |
AnalyzingInfixSuggester.writer
Used for ongoing NRT additions/updates.
|
Modifier and Type | Method and Description |
---|---|
static void |
TestUtil.addIndexesSlowly(IndexWriter writer,
DirectoryReader... readers) |
static void |
TestUtil.reduceOpenFiles(IndexWriter w)
just tries to configure things to keep the open file
count lowish
|
static void |
TestUtil.syncConcurrentMerges(IndexWriter writer) |
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.