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