Package ca.uhn.fhir.jpa.model.search
Class ExtendedHSearchIndexData
java.lang.Object
ca.uhn.fhir.jpa.model.search.ExtendedHSearchIndexData
Collects our HSearch extended indexing data.
-
Constructor Summary
ConstructorDescriptionExtendedHSearchIndexData
(ca.uhn.fhir.context.FhirContext theFhirContext, StorageSettings theStorageSettings, org.hl7.fhir.instance.model.api.IBaseResource theResource, ResourceTable theEntity) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCompositeIndexData
(String theSearchParamName, CompositeSearchIndexData theBuildCompositeIndexData) void
addDateIndexData
(String theSpName, DateSearchIndexData value) void
addDateIndexData
(String theSpName, Date theLowerBound, int theLowerBoundOrdinal, Date theUpperBound, int theUpperBoundOrdinal) void
addNumberIndexDataIfNotPresent
(String theParamName, BigDecimal theValue) void
addQuantityIndexData
(String theSpName, QuantitySearchIndexData value) void
addResourceLinkIndexData
(String theSpName, String theTargetResourceId) void
addStringIndexData
(String theSpName, String theText) void
addTokenIndexData
(String theSpName, org.hl7.fhir.instance.model.api.IBaseCoding theNextValue) void
addTokenIndexDataIfNotPresent
(String theSpName, String theSystem, String theValue) Add if not already present.void
addUriIndexData
(String theSpName, String theValue) com.google.common.collect.SetMultimap
<String, DateSearchIndexData> com.google.common.collect.SetMultimap
<String, QuantitySearchIndexData> com.google.common.collect.SetMultimap
<String, CompositeSearchIndexData> void
setForcedId
(String theForcedId) void
setRawResourceData
(String theResourceJSON) void
writeIndexElements
(org.hibernate.search.engine.backend.document.DocumentElement theDocument) Write the index document.
-
Constructor Details
-
ExtendedHSearchIndexData
public ExtendedHSearchIndexData(ca.uhn.fhir.context.FhirContext theFhirContext, StorageSettings theStorageSettings, org.hl7.fhir.instance.model.api.IBaseResource theResource, ResourceTable theEntity)
-
-
Method Details
-
writeIndexElements
public void writeIndexElements(org.hibernate.search.engine.backend.document.DocumentElement theDocument) Write the index document. Called by Hibernate Search after the ResourceTable entity has been flushed/committed. Keep this in sync with the schema defined inSearchParamTextPropertyBinder
- Parameters:
theDocument
- the Hibernate Search document for ResourceTable
-
addStringIndexData
-
addTokenIndexDataIfNotPresent
Add if not already present. -
addTokenIndexData
public void addTokenIndexData(String theSpName, org.hl7.fhir.instance.model.api.IBaseCoding theNextValue) -
addUriIndexData
-
addResourceLinkIndexData
-
addDateIndexData
public void addDateIndexData(String theSpName, Date theLowerBound, int theLowerBoundOrdinal, Date theUpperBound, int theUpperBoundOrdinal) -
addDateIndexData
-
getDateIndexData
-
addNumberIndexDataIfNotPresent
-
addQuantityIndexData
-
getQuantityIndexData
-
setForcedId
-
getForcedId
-
setRawResourceData
-
getSearchParamComposites
public com.google.common.collect.SetMultimap<String,CompositeSearchIndexData> getSearchParamComposites() -
addCompositeIndexData
public void addCompositeIndexData(String theSearchParamName, CompositeSearchIndexData theBuildCompositeIndexData)
-