hapi-fhir-jpaserver-starter icon indicating copy to clipboard operation
hapi-fhir-jpaserver-starter copied to clipboard

How to set DaoConfig Properties

Open RafaelWO opened this issue 2 years ago • 4 comments

Hey, I wonder how one can set properties within the DaoConfig, e.g. disabling the delete operation or disabling :text indexing for improving the performance (see docs).

Thanks a lot!

P.S. Probably related to #433.

RafaelWO avatar Oct 11 '22 11:10 RafaelWO

Hello @RafaelWO did you end up figuring this out? I'm trying to find a solution to the same problem.

sabukar-fn avatar Feb 07 '23 22:02 sabukar-fn

FWIW this is where they get set: https://github.com/hapifhir/hapi-fhir-jpaserver-starter/blob/master/src/main/java/ca/uhn/fhir/jpa/starter/common/FhirServerConfigCommon.java#L88

Pull requests to add additional config properties to the YAML file would gladly be accepted.

jamesagnew avatar Feb 07 '23 22:02 jamesagnew

Hello @RafaelWO did you end up figuring this out? I'm trying to find a solution to the same problem.

@sabukar-fn No I did not. But following @jamesagnew's answer it seems that additional properties have to be set manually in the code and therefore require a PR.

I will see if I have time to create one.

RafaelWO avatar Feb 08 '23 11:02 RafaelWO

@jamesagnew AFAIS the setting for disabling the index for :text, called suppress_string_indexing_in_tokens, is not part of the DaoConfig (see docs). How can we set this?

RafaelWO avatar Feb 21 '23 16:02 RafaelWO