프로퍼티 | 타입 | 설명 | |
---|---|---|---|
WRITE_LOCK_TIMEOUT | long |
메소드 | 설명 | |
---|---|---|
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 |
메소드 | 설명 | |
---|---|---|
SetIndexWriter ( |
Sets the IndexWriter this config is attached to.
|
public IndexWriterConfig ( Version matchVersion, Analyzer analyzer ) : System | ||
matchVersion | Version | |
analyzer | Analyzer | |
리턴 | System |
public SetCodec ( System.Codec codec ) : |
||
codec | System.Codec | |
리턴 |
public SetFlushPolicy ( Lucene.Net.Index.FlushPolicy flushPolicy ) : |
||
flushPolicy | Lucene.Net.Index.FlushPolicy | |
리턴 |
public SetIndexCommit ( |
||
commit | ||
리턴 |
public SetIndexDeletionPolicy ( IndexDeletionPolicy deletionPolicy ) : |
||
deletionPolicy | IndexDeletionPolicy | |
리턴 |
public SetIndexerThreadPool ( Lucene.Net.Index.DocumentsWriterPerThreadPool threadPool ) : |
||
threadPool | Lucene.Net.Index.DocumentsWriterPerThreadPool | |
리턴 |
public SetIndexingChain ( IndexingChain indexingChain ) : |
||
indexingChain | IndexingChain | |
리턴 |
public SetInfoStream ( Lucene.Net.Util.InfoStream infoStream ) : |
||
infoStream | Lucene.Net.Util.InfoStream | |
리턴 |
public SetInfoStream ( |
||
printStream | ||
리턴 |
public SetMaxBufferedDeleteTerms ( int maxBufferedDeleteTerms ) : |
||
maxBufferedDeleteTerms | int | |
리턴 |
public SetMaxBufferedDocs ( int maxBufferedDocs ) : |
||
maxBufferedDocs | int | |
리턴 |
public SetMaxThreadStates ( int maxThreadStates ) : |
||
maxThreadStates | int | |
리턴 |
public SetMergePolicy ( |
||
mergePolicy | ||
리턴 |
public SetMergeScheduler ( Lucene.Net.Index.MergeScheduler mergeScheduler ) : |
||
mergeScheduler | Lucene.Net.Index.MergeScheduler | |
리턴 |
public SetMergedSegmentWarmer ( IndexReaderWarmer mergeSegmentWarmer ) : |
||
mergeSegmentWarmer | IndexReaderWarmer | |
리턴 |
public SetOpenMode ( OpenMode_e openMode ) : |
||
openMode | OpenMode_e | |
리턴 |
public SetRAMBufferSizeMB ( double ramBufferSizeMB ) : |
||
ramBufferSizeMB | double | |
리턴 |
public SetRAMPerThreadHardLimitMB ( int perThreadHardLimitMB ) : |
||
perThreadHardLimitMB | int | |
리턴 |
public SetReaderPooling ( bool readerPooling ) : |
||
readerPooling | bool | |
리턴 |
public SetReaderTermsIndexDivisor ( int divisor ) : |
||
divisor | int | |
리턴 |
public SetSimilarity ( Similarity similarity ) : |
||
similarity | Similarity | |
리턴 |
public SetTermIndexInterval ( int interval ) : |
||
interval | int | |
리턴 |
public SetUseCompoundFile ( bool useCompoundFile ) : |
||
useCompoundFile | bool | |
리턴 |
public SetWriteLockTimeout ( long writeLockTimeout ) : |
||
writeLockTimeout | long | |
리턴 |