Feature/elastic back in green (#893)

* Getting automated tests back into green

* using native API's

* formatting

* refactoring

* getting 8.X ES working

* Removed sleep

* Update src/test/java/ca/uhn/fhir/jpa/starter/ElasticsearchLastNR4IT.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Reintroduced sleep as indicies are a bit slow ?

* Using the production bean instead of a test one

* updating default parameters for es

* Making separate profile for ES

* works from here

* remove all not needed code anymore

* removing parent defined version

* fixed tests

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Jens Kristian Villadsen
2026-02-08 17:18:28 +01:00
committed by GitHub
parent c5fd867efc
commit 78a068ab45
6 changed files with 142 additions and 75 deletions

View File

@@ -37,6 +37,10 @@ management:
enabled: true
spring:
# elasticsearch:
# uris: http://localhost:9200
# username: elastic
# password: elastic
# -------------------------------------------------------------------------------
# Application Name
# -------------------------------------------------------------------------------
@@ -130,8 +134,10 @@ spring:
use_minimal_puts: false
# --- Hibernate Search (Lucene/Elasticsearch) ---
search:
enabled: false
#search:
# schema_management:
# strategy: CREATE
# enabled: true
# Lucene backend (default example)
# backend:
# type: lucene
@@ -142,10 +148,25 @@ spring:
# root: target/lucenefiles
# lucene_version: lucene_current
# Elasticsearch backend (alternative) — see also hapi.fhir.elasticsearch section in docs
# backend:
# type: elasticsearch
# analysis:
# configurer: ca.uhn.fhir.jpa.search.HapiHSearchAnalysisConfigurers$HapiElasticAnalysisConfigurer
# backend:
# layout:
# strategy: ca.uhn.fhir.jpa.search.elastic.IndexNamePrefixLayoutStrategy
# type: elasticsearch
# protocol: http
# analysis:
# configurer: ca.uhn.fhir.jpa.search.HapiHSearchAnalysisConfigurers$HapiElasticsearchAnalysisConfigurer
# scroll_timeout: 60
# schema_management:
# settings_file: ca/uhn/fhir/jpa/elastic/index-settings.json
# minimal_required_status_wait_timeout: 10000
# minimal_required_status: YELLOW
#
# dynamic_mapping: true
# indexing:
# plan:
# synchronization:
# strategy: async
# -------------------------------------------------------------------------------------
# HAPI FHIR — grouped by domain
@@ -249,8 +270,8 @@ hapi:
# -------------------------------------------------------------------------------
# NOTE: Extended Lucene/Elasticsearch indexing is experimental.
# See https://hapifhir.io/hapi-fhir/docs/server_jpa/elastic.html
advanced_lucene_indexing: false
search_index_full_text_enabled: false
# advanced_lucene_indexing: true
# search_index_full_text_enabled: true
# language_search_parameter_enabled: true
# upliftedRefchains_enabled: true
# index_storage_optimized: false