Class StringSortComparatorSource

java.lang.Object
org.apache.lucene.search.FieldComparatorSource
com.atlassian.jira.issue.search.parameters.lucene.sort.StringSortComparatorSource

@Internal @Deprecated(since="10.7", forRemoval=true) public class StringSortComparatorSource extends org.apache.lucene.search.FieldComparatorSource
Deprecated, for removal: This API element is subject to removal in a future version.
This supplies a Low Memory variant of Lucene's TermOrdValComparator. We have this modified class as we believe that most searches in very large Jira installations will return a very small portion of the document index, either because they are over only one of many projects or they return only open issues, especially on dashboards and in GreenHopper and similar plugins as well as in general navigator searches.

Internal use only for Lucene. Use NaturalFieldSort instead.

  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    StringSortComparatorSource(boolean sortMissingLast)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.lucene.search.FieldComparator
    newComparator(String fieldname, int numHits, int sortPos, boolean reversed)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StringSortComparatorSource

      public StringSortComparatorSource()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • StringSortComparatorSource

      public StringSortComparatorSource(boolean sortMissingLast)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • newComparator

      public org.apache.lucene.search.FieldComparator newComparator(String fieldname, int numHits, int sortPos, boolean reversed)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      newComparator in class org.apache.lucene.search.FieldComparatorSource