Package ca.uhn.fhir.jpa.dao.search
Interface IHSearchSortHelper
- All Known Implementing Classes:
HSearchSortHelperImpl
public interface IHSearchSortHelper
Helper for building freetext sort clauses
-
Method Summary
Modifier and TypeMethodDescriptionorg.hibernate.search.engine.search.sort.dsl.SortFinalStep
getSortClauses
(org.hibernate.search.engine.search.sort.dsl.SearchSortFactory theSortFactory, ca.uhn.fhir.rest.api.SortSpec theSort, String theResourceType) boolean
supportsAllSortTerms
(String theResourceType, SearchParameterMap theParams) Given a resource type and aSearchParameterMap
, return true only if all sort terms are supported.
-
Method Details
-
getSortClauses
org.hibernate.search.engine.search.sort.dsl.SortFinalStep getSortClauses(org.hibernate.search.engine.search.sort.dsl.SearchSortFactory theSortFactory, ca.uhn.fhir.rest.api.SortSpec theSort, String theResourceType) -
supportsAllSortTerms
Given a resource type and aSearchParameterMap
, return true only if all sort terms are supported.- Parameters:
theResourceType
- The resource type for the query.theParams
- TheSearchParameterMap
being searched with.- Returns:
- true if all sort terms are supported, false otherwise.
-