feat: add support to enable search index full text (#828)

Signed-off-by: Saurav Sharma <appdroiddeveloper@gmail.com>
This commit is contained in:
Saurav Sharma
2025-06-08 15:23:52 +05:45
committed by GitHub
parent 0b907a4121
commit e29dc540e3
6 changed files with 14 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ public class AppProperties {
private Boolean mdm_enabled = false;
private String mdm_rules_json_location = "mdm-rules.json";
private boolean advanced_lucene_indexing = false;
private boolean search_index_full_text_enabled = false;
private boolean enable_index_of_type = false;
private Boolean allow_cascading_deletes = false;
private Boolean allow_contains_searches = true;
@@ -284,6 +285,14 @@ public class AppProperties {
advanced_lucene_indexing = theAdvanced_lucene_indexing;
}
public boolean getSearch_index_full_text_enabled() {
return this.search_index_full_text_enabled;
}
public void setSearch_index_full_text_enabled(boolean theSearch_index_full_text_enabled) {
search_index_full_text_enabled = theSearch_index_full_text_enabled;
}
public Boolean getAllow_cascading_deletes() {
return allow_cascading_deletes;
}

View File

@@ -201,6 +201,7 @@ public class FhirServerConfigCommon {
jpaStorageSettings.setFilterParameterEnabled(appProperties.getFilter_search_enabled());
jpaStorageSettings.setHibernateSearchIndexSearchParams(appProperties.getAdvanced_lucene_indexing());
jpaStorageSettings.setHibernateSearchIndexFullText(appProperties.getSearch_index_full_text_enabled());
jpaStorageSettings.setTreatBaseUrlsAsLocal(new HashSet<>(appProperties.getLocal_base_urls()));
jpaStorageSettings.setTreatReferencesAsLogical(new HashSet<>(appProperties.getLogical_urls()));

View File

@@ -200,6 +200,7 @@ hapi:
### !!Extended Lucene/Elasticsearch Indexing is still a experimental feature, expect some features (e.g. _total=accurate) to not work as expected!!
### more information here: https://hapifhir.io/hapi-fhir/docs/server_jpa/elastic.html
advanced_lucene_indexing: false
search_index_full_text_enabled: false
bulk_export_enabled: false
bulk_import_enabled: false
# language_search_parameter_enabled: true

View File

@@ -196,6 +196,7 @@ hapi:
### !!Extended Lucene/Elasticsearch Indexing is still a experimental feature, expect some features (e.g. _total=accurate) to not work as expected!!
### more information here: https://hapifhir.io/hapi-fhir/docs/server_jpa/elastic.html
advanced_lucene_indexing: false
search_index_full_text_enabled: false
bulk_export_enabled: false
bulk_import_enabled: false
# language_search_parameter_enabled: true