Method ShouldUpgradeSegment
ShouldUpgradeSegment(SegmentCommitInfo)
Returns true
if the given segment should be upgraded. The default implementation
will return !Constants.LUCENE_MAIN_VERSION.Equals(si.Version)
,
so all segments created with a different version number than this Lucene version will
get upgraded.
Declaration
protected virtual bool ShouldUpgradeSegment(SegmentCommitInfo si)
Parameters
Type | Name | Description |
---|---|---|
SegmentCommitInfo | si |
Returns
Type | Description |
---|---|
System.Boolean |