Package | Description |
---|---|
org.apache.lucene.index |
Code to maintain and access indices.
|
Modifier and Type | Class and Description |
---|---|
class |
IndexWriterConfig
Holds all the configuration that is used to create an
IndexWriter . |
Modifier and Type | Field and Description |
---|---|
private LiveIndexWriterConfig |
DocumentsWriterFlushControl.config |
private LiveIndexWriterConfig |
IndexWriter.config |
private LiveIndexWriterConfig |
DocumentsWriter.config |
protected LiveIndexWriterConfig |
FlushPolicy.indexWriterConfig |
private LiveIndexWriterConfig |
DocumentsWriterPerThread.indexWriterConfig |
Modifier and Type | Method and Description |
---|---|
LiveIndexWriterConfig |
IndexWriter.getConfig()
Returns a
LiveIndexWriterConfig , which can be used to query the IndexWriter
current settings, as well as modify "live" ones. |
LiveIndexWriterConfig |
LiveIndexWriterConfig.setCheckPendingFlushUpdate(boolean checkPendingFlushOnUpdate)
Expert: sets if indexing threads check for pending flushes on update in order
to help our flushing indexing buffers to disk.
|
LiveIndexWriterConfig |
LiveIndexWriterConfig.setMaxBufferedDocs(int maxBufferedDocs)
Determines the minimal number of documents required before the buffered
in-memory documents are flushed as a new Segment.
|
LiveIndexWriterConfig |
LiveIndexWriterConfig.setMergedSegmentWarmer(IndexWriter.IndexReaderWarmer mergeSegmentWarmer)
Set the merged segment warmer.
|
LiveIndexWriterConfig |
LiveIndexWriterConfig.setMergePolicy(MergePolicy mergePolicy)
Expert:
MergePolicy is invoked whenever there are changes to the
segments in the index. |
LiveIndexWriterConfig |
LiveIndexWriterConfig.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.
|
LiveIndexWriterConfig |
LiveIndexWriterConfig.setUseCompoundFile(boolean useCompoundFile)
Sets if the
IndexWriter should pack newly written segments in a
compound file. |
Modifier and Type | Method and Description |
---|---|
protected void |
FlushPolicy.init(LiveIndexWriterConfig indexWriterConfig)
Called by DocumentsWriter to initialize the FlushPolicy
|
Constructor and Description |
---|
DocumentsWriter(DocumentsWriter.FlushNotifications flushNotifications,
int indexCreatedVersionMajor,
java.util.concurrent.atomic.AtomicLong pendingNumDocs,
boolean enableTestPoints,
java.util.function.Supplier<java.lang.String> segmentNameSupplier,
LiveIndexWriterConfig config,
Directory directoryOrig,
Directory directory,
FieldInfos.FieldNumbers globalFieldNumberMap) |
DocumentsWriterFlushControl(DocumentsWriter documentsWriter,
LiveIndexWriterConfig config) |
DocumentsWriterPerThread(int indexVersionCreated,
java.lang.String segmentName,
Directory directoryOrig,
Directory directory,
LiveIndexWriterConfig indexWriterConfig,
InfoStream infoStream,
DocumentsWriterDeleteQueue deleteQueue,
FieldInfos.Builder fieldInfos,
java.util.concurrent.atomic.AtomicLong pendingNumDocs,
boolean enableTestPoints) |