Package com.atlassian.jira.search.lucene
Class LuceneSortMapper
java.lang.Object
com.atlassian.jira.search.lucene.LuceneSortMapper
Converts search API sort clauses into Lucene sorts.
Platform-specific class intended for the Lucene search platform only.
Jira Search exposes a common API backed by multiple search engines. This class bypasses that abstraction and couples callers to Lucene internals.
Using this class when the runtime search platform is not Lucene (e.g. OpenSearch) may produce incorrect results or failures.
Internal use only.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.SortFieldmapSortToLucene(FieldSort sort) Converts a single search API sort clause to a Lucene sort.org.apache.lucene.search.SortmapSortToLucene(QuerySort sort) Converts all the search API sort clauses of a query to a Lucene sort.
-
Constructor Details
-
LuceneSortMapper
-
-
Method Details
-
mapSortToLucene
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
Converts a single search API sort clause to a Lucene sort.- Parameters:
sort- A single search API sort clause.- Returns:
- The equivalent Lucene sort.
-