Property | Type | Description | |
---|---|---|---|
WRITE_LOCK_TIMEOUT | long |
Method | Description | |
---|---|---|
Clone ( ) : object | ||
IndexWriterConfig ( Version matchVersion, Analyzer analyzer ) : System |
Creates a new config that with defaults that match the specified Version as well as the default {@link Analyzer}. If matchVersion is >= {@link Version#LUCENE_32}, TieredMergePolicy is used for merging; else LogByteSizeMergePolicy. Note that TieredMergePolicy is free to select non-contiguous merges, which means docIDs may not remain monotonic over time. If this is a problem you should switch to LogByteSizeMergePolicy or LogDocMergePolicy.
|
|
SetCodec ( System.Codec codec ) : |
Set the Codec. Only takes effect when IndexWriter is first created.
|
|
SetFlushPolicy ( Lucene.Net.Index.FlushPolicy flushPolicy ) : |
Expert: Controls when segments are flushed to disk during indexing. The FlushPolicy initialized during IndexWriter instantiation and once initialized the given instance is bound to this IndexWriter and should not be used with another writer.
|
|
SetIndexCommit ( |
Expert: allows to open a certain commit point. The default is null which opens the latest commit point. Only takes effect when IndexWriter is first created.
|
|
SetIndexDeletionPolicy ( IndexDeletionPolicy deletionPolicy ) : |
Expert: allows an optional IndexDeletionPolicy implementation to be specified. You can use this to control when prior commits are deleted from the index. The default policy is KeepOnlyLastCommitDeletionPolicy which removes all prior commits as soon as a new commit is done (this matches behavior before 2.2). Creating your own policy can allow you to explicitly keep previous "point in time" commits alive in the index for some time, to allow readers to refresh to the new commit without having the old commit deleted out from under them. this is necessary on filesystems like NFS that do not support "delete on last close" semantics, which Lucene's "point in time" search normally relies on. NOTE: the deletion policy cannot be null. Only takes effect when IndexWriter is first created.
|
|
SetIndexerThreadPool ( Lucene.Net.Index.DocumentsWriterPerThreadPool threadPool ) : |
Expert: Sets the DocumentsWriterPerThreadPool instance used by the IndexWriter to assign thread-states to incoming indexing threads. If no DocumentsWriterPerThreadPool is set IndexWriter will use ThreadAffinityDocumentsWriterThreadPool with max number of thread-states set to #DEFAULT_MAX_THREAD_STATES (see #DEFAULT_MAX_THREAD_STATES). NOTE: The given DocumentsWriterPerThreadPool instance must not be used with other IndexWriter instances once it has been initialized / associated with an IndexWriter. NOTE: this only takes effect when IndexWriter is first created.
|
|
SetIndexingChain ( IndexingChain indexingChain ) : |
Expert: sets the DocConsumer chain to be used to process documents. Only takes effect when IndexWriter is first created.
|
|
SetInfoStream ( Lucene.Net.Util.InfoStream infoStream ) : |
Information about merges, deletes and a message when maxFieldLength is reached will be printed to this. Must not be null, but InfoStream#NO_OUTPUT may be used to supress output.
|
|
SetInfoStream ( |
Convenience method that uses PrintStreamInfoStream. Must not be null.
|
|
SetMaxBufferedDeleteTerms ( int maxBufferedDeleteTerms ) : |
||
SetMaxBufferedDocs ( int maxBufferedDocs ) : |
||
SetMaxThreadStates ( int maxThreadStates ) : |
Sets the max number of simultaneous threads that may be indexing documents at once in IndexWriter. Values < 1 are invalid and if passed Only takes effect when IndexWriter is first created.
|
|
SetMergePolicy ( |
Expert: MergePolicy is invoked whenever there are changes to the segments in the index. Its role is to select which merges to do, if any, and return a MergePolicy.MergeSpecification describing the merges. It also selects merges to do for forceMerge. Only takes effect when IndexWriter is first created.
|
|
SetMergeScheduler ( Lucene.Net.Index.MergeScheduler mergeScheduler ) : |
Expert: sets the merge scheduler used by this writer. The default is ConcurrentMergeScheduler. NOTE: the merge scheduler cannot be null. Only takes effect when IndexWriter is first created.
|
|
SetMergedSegmentWarmer ( IndexReaderWarmer mergeSegmentWarmer ) : |
||
SetOpenMode ( OpenMode_e openMode ) : |
Specifies OpenMode of the index. Only takes effect when IndexWriter is first created.
|
|
SetRAMBufferSizeMB ( double ramBufferSizeMB ) : |
||
SetRAMPerThreadHardLimitMB ( int perThreadHardLimitMB ) : |
Expert: Sets the maximum memory consumption per thread triggering a forced flush if exceeded. A DocumentsWriterPerThread is forcefully flushed once it exceeds this limit even if the #getRAMBufferSizeMB() has not been exceeded. this is a safety limit to prevent a DocumentsWriterPerThread from address space exhaustion due to its internal 32 bit signed integer based memory addressing. The given value must be less that 2GB (2048MB)
|
|
SetReaderPooling ( bool 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 DirectoryReader#open(IndexWriter, boolean). this method lets you enable pooling without getting a near-real-time reader. NOTE: if you set this to false, IndexWriter will still pool readers once DirectoryReader#open(IndexWriter, boolean) is called. Only takes effect when IndexWriter is first created.
|
|
SetReaderTermsIndexDivisor ( int divisor ) : |
||
SetSimilarity ( Similarity similarity ) : |
Expert: set the Similarity implementation used by this IndexWriter. NOTE: the similarity cannot be null. Only takes effect when IndexWriter is first created.
|
|
SetTermIndexInterval ( int interval ) : |
||
SetUseCompoundFile ( bool useCompoundFile ) : |
||
SetWriteLockTimeout ( long writeLockTimeout ) : |
Sets the maximum time to wait for a write lock (in milliseconds) for this instance. You can change the default value for all instances by calling #setDefaultWriteLockTimeout(long). Only takes effect when IndexWriter is first created.
|
|
ToString ( ) : string |
Method | Description | |
---|---|---|
SetIndexWriter ( |
Sets the IndexWriter this config is attached to.
|
public IndexWriterConfig ( Version matchVersion, Analyzer analyzer ) : System | ||
matchVersion | Version | |
analyzer | Analyzer | |
return | System |
public SetCodec ( System.Codec codec ) : |
||
codec | System.Codec | |
return |
public SetFlushPolicy ( Lucene.Net.Index.FlushPolicy flushPolicy ) : |
||
flushPolicy | Lucene.Net.Index.FlushPolicy | |
return |
public SetIndexCommit ( |
||
commit | ||
return |
public SetIndexDeletionPolicy ( IndexDeletionPolicy deletionPolicy ) : |
||
deletionPolicy | IndexDeletionPolicy | |
return |
public SetIndexerThreadPool ( Lucene.Net.Index.DocumentsWriterPerThreadPool threadPool ) : |
||
threadPool | Lucene.Net.Index.DocumentsWriterPerThreadPool | |
return |
public SetIndexingChain ( IndexingChain indexingChain ) : |
||
indexingChain | IndexingChain | |
return |
public SetInfoStream ( Lucene.Net.Util.InfoStream infoStream ) : |
||
infoStream | Lucene.Net.Util.InfoStream | |
return |
public SetInfoStream ( |
||
printStream | ||
return |
public SetMaxBufferedDeleteTerms ( int maxBufferedDeleteTerms ) : |
||
maxBufferedDeleteTerms | int | |
return |
public SetMaxBufferedDocs ( int maxBufferedDocs ) : |
||
maxBufferedDocs | int | |
return |
public SetMaxThreadStates ( int maxThreadStates ) : |
||
maxThreadStates | int | |
return |
public SetMergePolicy ( |
||
mergePolicy | ||
return |
public SetMergeScheduler ( Lucene.Net.Index.MergeScheduler mergeScheduler ) : |
||
mergeScheduler | Lucene.Net.Index.MergeScheduler | |
return |
public SetMergedSegmentWarmer ( IndexReaderWarmer mergeSegmentWarmer ) : |
||
mergeSegmentWarmer | IndexReaderWarmer | |
return |
public SetOpenMode ( OpenMode_e openMode ) : |
||
openMode | OpenMode_e | |
return |
public SetRAMBufferSizeMB ( double ramBufferSizeMB ) : |
||
ramBufferSizeMB | double | |
return |
public SetRAMPerThreadHardLimitMB ( int perThreadHardLimitMB ) : |
||
perThreadHardLimitMB | int | |
return |
public SetReaderPooling ( bool readerPooling ) : |
||
readerPooling | bool | |
return |
public SetReaderTermsIndexDivisor ( int divisor ) : |
||
divisor | int | |
return |
public SetSimilarity ( Similarity similarity ) : |
||
similarity | Similarity | |
return |
public SetTermIndexInterval ( int interval ) : |
||
interval | int | |
return |
public SetUseCompoundFile ( bool useCompoundFile ) : |
||
useCompoundFile | bool | |
return |
public SetWriteLockTimeout ( long writeLockTimeout ) : |
||
writeLockTimeout | long | |
return |