Skip to content

Commit 98b1cd9

Browse files
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
1 parent cf00333 commit 98b1cd9

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ public enum BinaryStorageMode {
126126
private Map<String, RemoteSystem> remote_terminology_service = null;
127127
private Boolean match_url_cache_enabled = false;
128128
private Boolean index_storage_optimized = false;
129+
private Boolean mark_resources_for_reindexing_upon_search_parameter_change = true;
129130
private Integer reindex_thread_count = null;
130131
private Integer expunge_thread_count = null;
131132

@@ -811,6 +812,16 @@ public void setIndex_storage_optimized(boolean theIndex_storage_optimized) {
811812
index_storage_optimized = theIndex_storage_optimized;
812813
}
813814

815+
public Boolean getMark_resources_for_reindexing_upon_search_parameter_change() {
816+
return mark_resources_for_reindexing_upon_search_parameter_change;
817+
}
818+
819+
public void setMark_resources_for_reindexing_upon_search_parameter_change(
820+
Boolean mark_resources_for_reindexing_upon_search_parameter_change) {
821+
this.mark_resources_for_reindexing_upon_search_parameter_change =
822+
mark_resources_for_reindexing_upon_search_parameter_change;
823+
}
824+
814825
public Integer getReindex_thread_count() {
815826
return reindex_thread_count;
816827
}

src/main/java/ca/uhn/fhir/jpa/starter/common/FhirServerConfigCommon.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ public JpaStorageSettings jpaStorageSettings(AppProperties appProperties) {
190190
jpaStorageSettings.setSchedulingDisabled(!appProperties.getDao_scheduling_enabled());
191191
jpaStorageSettings.setIndexStorageOptimized(appProperties.getIndex_storage_optimized());
192192
jpaStorageSettings.setMatchUrlCacheEnabled(appProperties.getMatch_url_cache_enabled());
193+
jpaStorageSettings.setMarkResourcesForReindexingUponSearchParameterChange(
194+
appProperties.getMark_resources_for_reindexing_upon_search_parameter_change());
193195
jpaStorageSettings.setDeleteEnabled(appProperties.getDelete_enabled());
194196
jpaStorageSettings.setDeleteExpungeEnabled(appProperties.getDelete_expunge_enabled());
195197
jpaStorageSettings.setExpungeEnabled(appProperties.getExpunge_enabled());

0 commit comments

Comments
 (0)