Package ca.uhn.fhir.jpa.dao
Interface IFulltextSearchSvc
- All Known Implementing Classes:
FulltextSearchSvcImpl
public interface IFulltextSearchSvc
-
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)
-
Method Details
-
search
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.- 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.
-
everything
List<ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId> everything(String theResourceName, SearchParameterMap theParams, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) -
isDisabled
boolean isDisabled() -
extractLuceneIndexData
ExtendedLuceneIndexData extractLuceneIndexData(org.hl7.fhir.instance.model.api.IBaseResource theResource, ResourceIndexedSearchParams theNewParams) -
supportsSomeOf
-
reindex
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.- Parameters:
theEntity
- the fully populated ResourceTable entity
-