
Package ca.uhn.fhir.jpa.search.lastn
Class ElasticsearchSvcImpl
java.lang.Object
ca.uhn.fhir.jpa.search.lastn.ElasticsearchSvcImpl
- All Implemented Interfaces:
IElasticsearchSvc
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchSvcImpl(PartitionSettings thePartitionSetings, String theProtocol, String theHostname, String theUsername, String thePassword) ElasticsearchSvcImpl(String theProtocol, String theHostname, String theUsername, String thePassword) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Invoked when shutting down.List<org.hl7.fhir.instance.model.api.IBaseResource> getObservationResources(Collection<? extends ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId> thePids) Returns inlined observation resource stored along with index mappings for matched identifiersvoidrefreshIndex(String theIndexName)
-
Field Details
-
OBSERVATION_INDEX
- See Also:
-
OBSERVATION_CODE_INDEX
- See Also:
-
OBSERVATION_INDEX_SCHEMA_FILE
- See Also:
-
OBSERVATION_CODE_INDEX_SCHEMA_FILE
- See Also:
-
-
Constructor Details
-
ElasticsearchSvcImpl
public ElasticsearchSvcImpl(PartitionSettings thePartitionSetings, String theProtocol, String theHostname, @Nullable String theUsername, @Nullable String thePassword) -
ElasticsearchSvcImpl
public ElasticsearchSvcImpl(String theProtocol, String theHostname, @Nullable String theUsername, @Nullable String thePassword)
-
-
Method Details
-
close
Description copied from interface:IElasticsearchSvcInvoked when shutting down.- Specified by:
closein interfaceIElasticsearchSvc- Throws:
IOException
-
getObservationResources
public List<org.hl7.fhir.instance.model.api.IBaseResource> getObservationResources(Collection<? extends ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId> thePids) Description copied from interface:IElasticsearchSvcReturns inlined observation resource stored along with index mappings for matched identifiers- Specified by:
getObservationResourcesin interfaceIElasticsearchSvc- Parameters:
thePids-- Returns:
- Resources list or empty if nothing found
-
refreshIndex
- Throws:
IOException
-