feat: add configuration for marking resources for reindexing upon search parameter change (#867)

* feat: add configuration for marking resources for reindexing upon search parameter change

* fix formatting
This commit is contained in:
Patrick Werner
2025-10-30 10:43:06 +01:00
committed by GitHub
parent cf003331e4
commit 98b1cd9373
2 changed files with 13 additions and 0 deletions

View File

@@ -126,6 +126,7 @@ public class AppProperties {
private Map<String, RemoteSystem> remote_terminology_service = null;
private Boolean match_url_cache_enabled = false;
private Boolean index_storage_optimized = false;
private Boolean mark_resources_for_reindexing_upon_search_parameter_change = true;
private Integer reindex_thread_count = null;
private Integer expunge_thread_count = null;
@@ -811,6 +812,16 @@ public class AppProperties {
index_storage_optimized = theIndex_storage_optimized;
}
public Boolean getMark_resources_for_reindexing_upon_search_parameter_change() {
return mark_resources_for_reindexing_upon_search_parameter_change;
}
public void setMark_resources_for_reindexing_upon_search_parameter_change(
Boolean mark_resources_for_reindexing_upon_search_parameter_change) {
this.mark_resources_for_reindexing_upon_search_parameter_change =
mark_resources_for_reindexing_upon_search_parameter_change;
}
public Integer getReindex_thread_count() {
return reindex_thread_count;
}

View File

@@ -190,6 +190,8 @@ public class FhirServerConfigCommon {
jpaStorageSettings.setSchedulingDisabled(!appProperties.getDao_scheduling_enabled());
jpaStorageSettings.setIndexStorageOptimized(appProperties.getIndex_storage_optimized());
jpaStorageSettings.setMatchUrlCacheEnabled(appProperties.getMatch_url_cache_enabled());
jpaStorageSettings.setMarkResourcesForReindexingUponSearchParameterChange(
appProperties.getMark_resources_for_reindexing_upon_search_parameter_change());
jpaStorageSettings.setDeleteEnabled(appProperties.getDelete_enabled());
jpaStorageSettings.setDeleteExpungeEnabled(appProperties.getDelete_expunge_enabled());
jpaStorageSettings.setExpungeEnabled(appProperties.getExpunge_enabled());