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
-
Constructor Summary
ConstructorDescriptionElasticsearchSvcImpl
(PartitionSettings thePartitionSetings, String theProtocol, String theHostname, String theUsername, String thePassword) ElasticsearchSvcImpl
(String theProtocol, String theHostname, String theUsername, String thePassword) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
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 identifiersvoid
refreshIndex
(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:IElasticsearchSvc
Invoked when shutting down.- Specified by:
close
in 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:IElasticsearchSvc
Returns inlined observation resource stored along with index mappings for matched identifiers- Specified by:
getObservationResources
in interfaceIElasticsearchSvc
- Parameters:
thePids
-- Returns:
- Resources list or empty if nothing found
-
refreshIndex
- Throws:
IOException
-