Class LengthSortComparator

  • All Implemented Interfaces:
    Serializable

    public class LengthSortComparator
    extends org.apache.lucene.search.FieldComparatorSource
    LengthSortComparator implements a FieldComparator which sorts on the length of property values.
    See Also:
    Serialized Form
    • Constructor Detail

      • LengthSortComparator

        public LengthSortComparator​(NamespaceMappings nsMappings)
    • 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