Add Elasticsearch index prefix configuration (#891)
* Add Elasticsearch configuration section to application.yaml * Add configuration for reindexing resources upon search parameter change * Add Elasticsearch client configuration for testing * Update logback dependencies because of a security issue and enable resource filtering in pom.xml * Add application name and tester configuration to application.yaml. Refactor hibernate properties * Add custom Elasticsearch configuration to create ElasticsearchClient bean * Add index prefix configuration for Elasticsearch indices * Fix Elasticsearch URI format in test initialization * Refactor ElasticsearchConfig for improved readability and code style consistency (spotless:apply) * Refactor ElasticsearchConfig for improved readability and code style consistency (spotless:apply) * Update index prefix in application.yaml for Elasticsearch configuration * Enhance index prefix validation and add sanitization method for Elasticsearch index names * Merged with master in upstream * Refactor ElasticsearchBootSvcImpl and ElasticsearchConfig for improved readability (mvn spotless) * Comment out custom_content_path in application.yaml for clarity * - Refactor application.yaml for improved structure and readability; - Add PostgresLucenePatientIT integration test; and - Update testcontainers dependencies to avoid compatibility issues with newer Docker APIs. * Refactor PostgresLucenePatientIT to use external configuration file for test properties * Add integration tests for PostgreSQL and Elasticsearch with dynamic configuration * Increase socket timeout in CdsHooksServletIT for improved stability during tests * Remove deprecated tester configuration from application.yaml
This commit is contained in:
22
src/test/resources/test-postgres-lucene.yaml
Normal file
22
src/test/resources/test-postgres-lucene.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
hapi:
|
||||
fhir:
|
||||
fhir_version: r4
|
||||
cr_enabled: false
|
||||
advanced_lucene_indexing: true
|
||||
store_resource_in_lucene_index_enabled: true
|
||||
search_index_full_text_enabled: true
|
||||
|
||||
spring:
|
||||
main:
|
||||
allow-bean-definition-overriding: true
|
||||
jpa:
|
||||
properties:
|
||||
hibernate:
|
||||
search:
|
||||
enabled: true
|
||||
backend:
|
||||
type: lucene
|
||||
analysis:
|
||||
configurer: ca.uhn.fhir.jpa.search.HapiHSearchAnalysisConfigurers$HapiLuceneAnalysisConfigurer
|
||||
directory:
|
||||
type: local-heap
|
||||
Reference in New Issue
Block a user