Class MergePolicy
Expert: a MergePolicy determines the sequence of primitive merge operations to be used for overall merge and optimize operations.
Whenever the segments in an index have been altered by
Index
Note that the policy can return more than one merge at
a time. In this case, if the writer is using Serial
The default MergePolicy is Log
NOTE: This API is new and still experimental (subject to change suddenly in the next release)
NOTE: This class typically requires access to
package-private APIs (e.g. SegmentInfos
) to do its job;
if you implement your own MergePolicy, you'll need to put
it in package Lucene.Net.Index in order to use
these APIs.
Inheritance
Namespace:
Assembly: Lucene.Net.NetCore.dll
Syntax
public abstract class MergePolicy : IDisposable
Constructors
Name | Description |
---|---|
Merge |
Fields
Name | Description |
---|---|
writer |
Methods
Name | Description |
---|---|
Close() | Release all resources for the policy. |
Dispose() | Release all resources for the policy. |
Dispose(Boolean) | |
Find |
Determine what set of merge operations are now necessary on the index.
Index |
FindMergesForOptimize(SegmentInfos, Int32, ISet<SegmentInfo>) | Determine what set of merge operations is necessary in order to optimize
the index. Index |
Find |
Determine what set of merge operations is necessary in order to expunge all deletes from the index. |
Use |
Returns true if the doc store files should use the compound file format. |
Use |
Returns true if a newly flushed (not from merge) segment should use the compound file format. |