Class NormalizeSortComparator

  • All Implemented Interfaces:
    Serializable

    public class NormalizeSortComparator
    extends org.apache.lucene.search.FieldComparatorSource
    NormalizeSortComparator implements a FieldComparator which compares the lower-cased and normalized string values of a base sort comparator.
    See Also:
    Serialized Form
    • Constructor Detail

      • NormalizeSortComparator

        public NormalizeSortComparator​(org.apache.lucene.search.FieldComparatorSource base)
        Creates a new upper case sort comparator.
        Parameters:
        base - the base sort comparator source.
    • Method Detail

      • newComparator

        public org.apache.lucene.search.FieldComparator<?> newComparator​(String fieldname,
                                                                         int numHits,
                                                                         int sortPos,
                                                                         boolean reversed)
                                                                  throws IOException
        Specified by:
        newComparator in class org.apache.lucene.search.FieldComparatorSource
        Throws:
        IOException