Package ca.uhn.fhir.jpa.dao
Class FulltextSearchSvcImpl
java.lang.Object
ca.uhn.fhir.jpa.dao.FulltextSearchSvcImpl
- All Implemented Interfaces:
IFulltextSearchSvc
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId>
everything
(String theResourceName, SearchParameterMap theParams, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) extractLuceneIndexData
(org.hl7.fhir.instance.model.api.IBaseResource theResource, ResourceIndexedSearchParams theNewParams) boolean
void
reindex
(ResourceTable theEntity) Re-publish the resource to the full-text index.List<ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId>
search
(String theResourceName, SearchParameterMap theParams) Search the Lucene/Elastic index for pids using params supported in theParams, consuming entries from theParams when used to query.boolean
supportsSomeOf
(SearchParameterMap myParams)
-
Field Details
-
myForcedIdDao
-
-
Constructor Details
-
FulltextSearchSvcImpl
public FulltextSearchSvcImpl()Constructor
-
-
Method Details
-
extractLuceneIndexData
public ExtendedLuceneIndexData extractLuceneIndexData(org.hl7.fhir.instance.model.api.IBaseResource theResource, ResourceIndexedSearchParams theNewParams) - Specified by:
extractLuceneIndexData
in interfaceIFulltextSearchSvc
-
supportsSomeOf
- Specified by:
supportsSomeOf
in interfaceIFulltextSearchSvc
-
reindex
Description copied from interface:IFulltextSearchSvc
Re-publish the resource to the full-text index. During update, hibernate search only republishes the entity if it has changed. During $reindex, we want to force the re-index.- Specified by:
reindex
in interfaceIFulltextSearchSvc
- Parameters:
theEntity
- the fully populated ResourceTable entity
-
everything
public List<ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId> everything(String theResourceName, SearchParameterMap theParams, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) - Specified by:
everything
in interfaceIFulltextSearchSvc
-
isDisabled
- Specified by:
isDisabled
in interfaceIFulltextSearchSvc
-
search
@Transactional public List<ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId> search(String theResourceName, SearchParameterMap theParams) Description copied from interface:IFulltextSearchSvc
Search the Lucene/Elastic index for pids using params supported in theParams, consuming entries from theParams when used to query.- Specified by:
search
in interfaceIFulltextSearchSvc
- Parameters:
theResourceName
- the resource name to restrict the query.theParams
- the full query - modified to return only params unused by the index.- Returns:
- the pid list for the matchign resources.
-