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:
@@ -37,6 +37,12 @@ management:
|
||||
enabled: true
|
||||
|
||||
spring:
|
||||
# -------------------------------------------------------------------------------
|
||||
# Application Name
|
||||
# -------------------------------------------------------------------------------
|
||||
application:
|
||||
name: "@project.artifactId@"
|
||||
|
||||
# -------------------------------------------------------------------------------
|
||||
# A. Spring AI — Model Context Protocol (MCP)
|
||||
# -------------------------------------------------------------------------------
|
||||
@@ -81,6 +87,7 @@ spring:
|
||||
main:
|
||||
allow-bean-definition-overriding: false
|
||||
allow-circular-references: true
|
||||
banner-mode: off
|
||||
|
||||
autoconfigure:
|
||||
# This exclude is only needed for setups not using Elasticsearch where the elasticsearch sniff is not needed.
|
||||
@@ -252,6 +259,12 @@ hapi:
|
||||
# enable_index_contained_resource: false
|
||||
# store_resource_in_lucene_index_enabled: true
|
||||
|
||||
# -------------------------------------------------------------------------------
|
||||
# Elasticsearch Configuration
|
||||
# -------------------------------------------------------------------------------
|
||||
# elasticsearch:
|
||||
# index_prefix: "myprefix" # Prefix for all Elasticsearch indexes (e.g., myprefix_observation_index)
|
||||
|
||||
# -------------------------------------------------------------------------------
|
||||
# E. Bulk Operations
|
||||
# -------------------------------------------------------------------------------
|
||||
@@ -443,4 +456,4 @@ hapi:
|
||||
name: Local Tester
|
||||
server_address: 'http://localhost:8080/fhir'
|
||||
refuse_to_fetch_third_party_urls: false
|
||||
fhir_version: R4
|
||||
fhir_version: R4
|
||||
|
||||
Reference in New Issue
Block a user