From 7fa9c756fc09225982c022ca30fa3558b31d0272 Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Fri, 9 Feb 2024 22:52:44 +0700 Subject: [PATCH] BREAKING: Lucene.Net.Search.FieldComparer: Added internal constructor so users upgrading from older versions of Lucene.NET don't attempt to use this class and instead use the Lucene equivalent class, FieldComparer. --- src/Lucene.Net/Search/FieldComparator.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Lucene.Net/Search/FieldComparator.cs b/src/Lucene.Net/Search/FieldComparator.cs index 6a63151cdc..11a7078292 100644 --- a/src/Lucene.Net/Search/FieldComparator.cs +++ b/src/Lucene.Net/Search/FieldComparator.cs @@ -251,6 +251,9 @@ public override int CompareValues(object first, object second) // type parameter to access these nested types. Also moving non-generic methods here for casting without generics. public abstract class FieldComparer { + // LUCENENET: This class is not intended for user subclassing. Use FieldComparer instead. + internal FieldComparer() { } + /// /// Returns -1 if first is less than second. Default /// implementation to assume the type implements and