
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
ConstructorsConstructorDescriptionExtendedHSearchIndexData(ca.uhn.fhir.context.FhirContext theFhirContext, StorageSettings theStorageSettings, org.hl7.fhir.instance.model.api.IBaseResource theResource, ResourceTable theEntity) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCompositeIndexData(String theSearchParamName, CompositeSearchIndexData theBuildCompositeIndexData) voidaddDateIndexData(String theSpName, DateSearchIndexData value) voidaddDateIndexData(String theSpName, Date theLowerBound, int theLowerBoundOrdinal, Date theUpperBound, int theUpperBoundOrdinal) voidaddNumberIndexDataIfNotPresent(String theParamName, BigDecimal theValue) voidaddQuantityIndexData(String theSpName, QuantitySearchIndexData value) voidaddResourceLinkIndexData(String theSpName, String theTargetResourceId) voidaddStringIndexData(String theSpName, String theText) voidaddTokenIndexData(String theSpName, org.hl7.fhir.instance.model.api.IBaseCoding theNextValue) voidaddTokenIndexDataIfNotPresent(String theSpName, String theSystem, String theValue) Add if not already present.voidaddUriIndexData(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> voidsetForcedId(String theForcedId) voidsetRawResourceData(String theResourceJSON) voidwriteIndexElements(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)
-