Class LuceneSortMapper

java.lang.Object
com.atlassian.jira.search.lucene.LuceneSortMapper

@Deprecated(since="11.0", forRemoval=true) public class LuceneSortMapper extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Will be removed when we stop supporting Lucene.
Converts search API sort clauses into Lucene sorts.
  • Constructor Summary

    Constructors
    Constructor
    Description
    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.SortField
    Deprecated, for removal: This API element is subject to removal in a future version.
    Converts a single search API sort clause to a Lucene sort.
    org.apache.lucene.search.Sort
    Deprecated, for removal: This API element is subject to removal in a future version.
    Converts all the search API sort clauses of a query to a Lucene sort.

    Methods inherited from class java.lang.Object

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

    • LuceneSortMapper

      public LuceneSortMapper(Schema schema)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • mapSortToLucene

      public org.apache.lucene.search.Sort mapSortToLucene(QuerySort sort)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Converts all the search API sort clauses of a query to a Lucene sort.
      Parameters:
      sort - The search API query sort clauses.
      Returns:
      The equivalent Lucene sort.
    • mapSortToLucene

      public org.apache.lucene.search.SortField mapSortToLucene(FieldSort sort)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Converts a single search API sort clause to a Lucene sort.
      Parameters:
      sort - A single search API sort clause.
      Returns:
      The equivalent Lucene sort.