Add: of-type modifier option in application.yaml (#363)

Co-authored-by: Alejandro Medina <amedina@cens.cl>
This commit is contained in:
Alejandro Medina
2022-05-06 12:25:51 -04:00
committed by GitHub
parent fdfa6fd711
commit 91e4105fd8
3 changed files with 11 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ public class AppProperties {
private Boolean openapi_enabled = false; private Boolean openapi_enabled = false;
private Boolean mdm_enabled = false; private Boolean mdm_enabled = false;
private boolean advanced_lucene_indexing = false; private boolean advanced_lucene_indexing = false;
private boolean enable_index_of_type = false;
private Boolean allow_cascading_deletes = false; private Boolean allow_cascading_deletes = false;
private Boolean allow_contains_searches = true; private Boolean allow_contains_searches = true;
private Boolean allow_external_references = false; private Boolean allow_external_references = false;
@@ -834,4 +835,12 @@ public class AppProperties {
private Boolean quitWait = false; private Boolean quitWait = false;
} }
} }
public boolean getEnable_index_of_type() {
return enable_index_of_type;
}
public void setEnable_index_of_type(boolean enable_index_of_type) {
this.enable_index_of_type = enable_index_of_type;
}
} }

View File

@@ -178,6 +178,7 @@ public class FhirServerConfigCommon {
modelConfig.setNormalizedQuantitySearchLevel(appProperties.getNormalized_quantity_search_level()); modelConfig.setNormalizedQuantitySearchLevel(appProperties.getNormalized_quantity_search_level());
modelConfig.setIndexOnContainedResources(appProperties.getEnable_index_contained_resource()); modelConfig.setIndexOnContainedResources(appProperties.getEnable_index_contained_resource());
modelConfig.setIndexIdentifierOfType(appProperties.getEnable_index_of_type());
return modelConfig; return modelConfig;
} }

View File

@@ -91,6 +91,7 @@ hapi:
# delete_expunge_enabled: true # delete_expunge_enabled: true
# enable_repository_validating_interceptor: false # enable_repository_validating_interceptor: false
# enable_index_missing_fields: false # enable_index_missing_fields: false
# enable_index_of_type: true
# enable_index_contained_resource: false # enable_index_contained_resource: false
### !!Extended Lucene/Elasticsearch Indexing is still a experimental feature, expect some features (e.g. _total=accurate) to not work as expected!! ### !!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 ### more information here: https://hapifhir.io/hapi-fhir/docs/server_jpa/elastic.html