Class SortingMergePolicy
A MergePolicy that reorders documents according to a Sort before merging them. As a consequence, all segments resulting from a merge will be sorted while segments resulting from a flush will be in the order in which documents have been added.
NOTE: Never use this policy if you rely on
NOTE: This policy should only be used with idempotent Sorts so that the order of segments is predictable. For example, using INDEXORDER in reverse (which is not idempotent) will make the order of documents in a segment depend on the number of times the segment has been merged. @lucene.experimental
Inherited Members
Assembly: Lucene.Net.Misc.dll
Syntax
public sealed class SortingMergePolicy : MergePolicy, IDisposable
Constructors
Name | Description |
---|---|
SortingMergePolicy(MergePolicy, Sort) | Create a new MergePolicy that sorts documents with the given |
Fields
Name | Description |
---|---|
SORTER_ID_PROP | Put in the Diagnostics to denote that this segment is sorted. |
Methods
Name | Description |
---|---|
Clone() | |
Dispose(Boolean) | |
FindForcedDeletesMerges(SegmentInfos) | |
FindForcedMerges(SegmentInfos, Int32, IDictionary<SegmentCommitInfo, Nullable<Boolean>>) | |
FindMerges(MergeTrigger, SegmentInfos) | |
IsSorted(AtomicReader, Sort) | Returns |
SetIndexWriter(IndexWriter) | |
ToString() | |
UseCompoundFile(SegmentInfos, SegmentCommitInfo) |