Class NoMergePolicy
A MergePolicy which never returns merges to execute (hence it's
name). It is also a singleton and can be accessed through
NO_COMPOUND_FILES if you want to indicate the index
does not use compound files, or through COMPOUND_FILES
otherwise. Use it if you want to prevent an IndexWriter from ever
executing merges, without going through the hassle of tweaking a merge
policy's settings to achieve that, such as changing its merge factor.
Inheritance
System.Object
NoMergePolicy
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Lucene.Net.dll
Syntax
public sealed class NoMergePolicy : MergePolicy, IDisposable
Fields
|
Improve this Doc
View Source
COMPOUND_FILES
A singleton NoMergePolicy which indicates the index uses compound
files.
Declaration
public static readonly MergePolicy COMPOUND_FILES
Field Value
|
Improve this Doc
View Source
NO_COMPOUND_FILES
A singleton NoMergePolicy which indicates the index does not use
compound files.
Declaration
public static readonly MergePolicy NO_COMPOUND_FILES
Field Value
Methods
|
Improve this Doc
View Source
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
Overrides
|
Improve this Doc
View Source
FindForcedDeletesMerges(SegmentInfos)
Declaration
public override MergePolicy.MergeSpecification FindForcedDeletesMerges(SegmentInfos segmentInfos)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
FindForcedMerges(SegmentInfos, Int32, IDictionary<SegmentCommitInfo, Boolean>)
Declaration
public override MergePolicy.MergeSpecification FindForcedMerges(SegmentInfos segmentInfos, int maxSegmentCount, IDictionary<SegmentCommitInfo, bool> segmentsToMerge)
Parameters
Type |
Name |
Description |
SegmentInfos |
segmentInfos |
|
System.Int32 |
maxSegmentCount |
|
System.Collections.Generic.IDictionary<SegmentCommitInfo, System.Boolean> |
segmentsToMerge |
|
Returns
Overrides
|
Improve this Doc
View Source
FindMerges(MergeTrigger, SegmentInfos)
Declaration
public override MergePolicy.MergeSpecification FindMerges(MergeTrigger mergeTrigger, SegmentInfos segmentInfos)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
SetIndexWriter(IndexWriter)
Declaration
public override void SetIndexWriter(IndexWriter writer)
Parameters
Overrides
|
Improve this Doc
View Source
Size(SegmentCommitInfo)
Declaration
protected override long Size(SegmentCommitInfo info)
Parameters
Returns
Type |
Description |
System.Int64 |
|
Overrides
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
|
Improve this Doc
View Source
UseCompoundFile(SegmentInfos, SegmentCommitInfo)
Declaration
public override bool UseCompoundFile(SegmentInfos segments, SegmentCommitInfo newSegment)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
Implements
System.IDisposable