Configuration
The settings below will be enabled to support lucene or elastic search in the hdr_fhir.yaml file.
hibernate.search.enabled: true
For Lucene:
### lucene parameters
hibernate.search.backend.type: lucene
hibernate.search.backend.analysis.configurer: ca.uhn.fhir.jpa.search.HapiHSearchAnalysisConfigurers$HapiLuceneAnalysisConfigurer
hibernate.search.backend.directory.type: local-filesystem
hibernate.search.backend.directory.root: target/lucenefiles
hibernate.search.backend.lucene_version: lucene_current
For Elastic Search:
hibernate.search.backend.type: elasticsearch
hibernate.search.backend.analysis.configurer: ca.uhn.fhir.jpa.search.HapiHSearchAnalysisConfigurers$HapiElasticAnalysisConfigurer
elasticsearch:
debug:
pretty_print_json_log: false
refresh_after_write: false
enabled: false
required_index_status: YELLOW
rest_url: 'localhost:9200'
protocol: 'http'
schema_management_strategy: CREATE
username: SomeUsername
password: SomePassword
Note:
To work with elastic search, the required elastic search client jar files need to be placed under the WebLogic domain classpath (Example: <FHIR_DOMAIN>/lib) or add those jar files to HDR FHIR application war file under <HDR_FHIR_WAR>\WEB-INF\lib folder directly. These jar files are not bundled with the HDR FHIR application due to Oracle's commercial license procedure/restrictions.Parent topic: Lucene/Elasticsearch Indexing