Class TermsComponent.TermCountComparator

  • All Implemented Interfaces:
    Comparator<org.apache.solr.client.solrj.response.TermsResponse.Term>
    Enclosing class:
    TermsComponent

    public static class TermsComponent.TermCountComparator
    extends Object
    implements Comparator<org.apache.solr.client.solrj.response.TermsResponse.Term>
    Comparator for TermsResponse.Term sorting This sorts term by frequency in descending order
    • Constructor Detail

      • TermCountComparator

        public TermCountComparator()
    • Method Detail

      • compare

        public int compare​(org.apache.solr.client.solrj.response.TermsResponse.Term o1,
                           org.apache.solr.client.solrj.response.TermsResponse.Term o2)
        Specified by:
        compare in interface Comparator<org.apache.solr.client.solrj.response.TermsResponse.Term>