Package | Description |
---|---|
org.apache.lucene.index |
Code to maintain and access indices.
|
Modifier and Type | Method and Description |
---|---|
IndexWriterConfig |
IndexWriter.getConfig()
Returns the private
IndexWriterConfig , cloned
from the IndexWriterConfig passed to
IndexWriter.IndexWriter(Directory, IndexWriterConfig) . |
IndexWriterConfig |
IndexWriterConfig.setIndexCommit(IndexCommit commit)
Expert: allows to open a certain commit point.
|
IndexWriterConfig |
IndexWriterConfig.setIndexDeletionPolicy(IndexDeletionPolicy delPolicy)
Expert: allows an optional
IndexDeletionPolicy implementation to be
specified. |
IndexWriterConfig |
IndexWriterConfig.setMaxBufferedDeleteTerms(int maxBufferedDeleteTerms)
Determines the minimal number of delete terms required before the buffered
in-memory delete terms are applied and flushed.
|
IndexWriterConfig |
IndexWriterConfig.setMaxBufferedDocs(int maxBufferedDocs)
Determines the minimal number of documents required before the buffered
in-memory documents are flushed as a new Segment.
|
IndexWriterConfig |
IndexWriterConfig.setMaxThreadStates(int maxThreadStates)
Sets the max number of simultaneous threads that may be indexing documents
at once in IndexWriter.
|
IndexWriterConfig |
IndexWriterConfig.setMergedSegmentWarmer(IndexWriter.IndexReaderWarmer mergeSegmentWarmer)
Set the merged segment warmer.
|
IndexWriterConfig |
IndexWriterConfig.setMergePolicy(MergePolicy mergePolicy)
Expert:
MergePolicy is invoked whenever there are changes to the
segments in the index. |
IndexWriterConfig |
IndexWriterConfig.setMergeScheduler(MergeScheduler mergeScheduler)
Expert: sets the merge scheduler used by this writer.
|
IndexWriterConfig |
IndexWriterConfig.setOpenMode(IndexWriterConfig.OpenMode openMode)
Specifies
IndexWriterConfig.OpenMode of the index. |
IndexWriterConfig |
IndexWriterConfig.setRAMBufferSizeMB(double ramBufferSizeMB)
Determines the amount of RAM that may be used for buffering added documents
and deletions before they are flushed to the Directory.
|
IndexWriterConfig |
IndexWriterConfig.setReaderPooling(boolean readerPooling)
By default, IndexWriter does not pool the
SegmentReaders it must open for deletions and
merging, unless a near-real-time reader has been
obtained by calling
IndexWriter.getReader() . |
IndexWriterConfig |
IndexWriterConfig.setReaderTermsIndexDivisor(int divisor)
Sets the termsIndexDivisor passed to any readers that
IndexWriter opens, for example when applying deletes
or creating a near-real-time reader in
IndexWriter.getReader() . |
IndexWriterConfig |
IndexWriterConfig.setSimilarity(Similarity similarity)
Expert: set the
Similarity implementation used by this IndexWriter. |
IndexWriterConfig |
IndexWriterConfig.setTermIndexInterval(int interval)
Expert: set the interval between indexed terms.
|
IndexWriterConfig |
IndexWriterConfig.setWriteLockTimeout(long writeLockTimeout)
Sets the maximum time to wait for a write lock (in milliseconds) for this
instance.
|
Constructor and Description |
---|
IndexUpgrader(Directory dir,
IndexWriterConfig iwc,
PrintStream infoStream,
boolean deletePriorCommits)
Creates index upgrader on the given directory, using an
IndexWriter using the given
config. |
IndexWriter(Directory d,
IndexWriterConfig conf)
Constructs a new IndexWriter per the settings given in
conf . |