Ted Yu created SOLR-12950:
-----------------------------

             Summary: Consolidate the comparator in IndexSizeTrigger#run
                 Key: SOLR-12950
                 URL: https://issues.apache.org/jira/browse/SOLR-12950
             Project: Solr
          Issue Type: Improvement
      Security Level: Public (Default Security Level. Issues are Public)
            Reporter: Ted Yu


Currently IndexSizeTrigger#run uses two comparators for sorting.

They retrieve DOCS_SIZE_PROP from replica and present different order for the 
sorting.

It seems defining one comparator should be enough.
The other can be expressed with Collections.reverseOrder of the first one.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to