Package ca.uhn.fhir.jpa.dao.search
Class ExtendedHSearchSearchBuilder
java.lang.Object
ca.uhn.fhir.jpa.dao.search.ExtendedHSearchSearchBuilder
Search builder for HSearch for token, string, and reference parameters.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
These params have complicated semantics, or are best resolved at the JPA layer for now. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAndConsumeAdvancedQueryClauses
(ExtendedHSearchClauseBuilder theBuilder, ExtendedHSearchBuilderConsumeAdvancedQueryClausesParams theMethodParams) boolean
canUseHibernateSearch
(String theResourceType, SearchParameterMap theParams, ca.uhn.fhir.rest.server.util.ISearchParamRegistry theSearchParamRegistry) By default, do not use Hibernate Search.boolean
illegalForHibernateSearch
(String theParamName, ca.uhn.fhir.rest.server.util.ResourceSearchParams theActiveParamsForResourceType) Determine if ExtendedHibernateSearchBuilder can support this parameterboolean
isSupportsAllOf
(SearchParameterMap myParams) Are all the queries supported by our indexing?
-
Field Details
-
EMPTY_MODIFIER
- See Also:
-
ourUnsafeSearchParmeters
These params have complicated semantics, or are best resolved at the JPA layer for now.
-
-
Constructor Details
-
ExtendedHSearchSearchBuilder
public ExtendedHSearchSearchBuilder()
-
-
Method Details
-
illegalForHibernateSearch
public boolean illegalForHibernateSearch(String theParamName, ca.uhn.fhir.rest.server.util.ResourceSearchParams theActiveParamsForResourceType) Determine if ExtendedHibernateSearchBuilder can support this parameter- Parameters:
theParamName
- param nametheActiveParamsForResourceType
- active search parameters for the desired resource type- Returns:
- whether or not this search parameter is supported in hibernate
-
canUseHibernateSearch
public boolean canUseHibernateSearch(String theResourceType, SearchParameterMap theParams, ca.uhn.fhir.rest.server.util.ISearchParamRegistry theSearchParamRegistry) By default, do not use Hibernate Search. If a Search Parameter is supported by hibernate search, Are any of the queries supported by our indexing? - If not, do not use hibernate, because the results will be inaccurate and wrong. -
isSupportsAllOf
Are all the queries supported by our indexing? -
addAndConsumeAdvancedQueryClauses
public void addAndConsumeAdvancedQueryClauses(ExtendedHSearchClauseBuilder theBuilder, ExtendedHSearchBuilderConsumeAdvancedQueryClausesParams theMethodParams)
-