ahcis-rds / study_finder

StudyFinder is a flexible and configurable application to pull studies from clinicaltrials.gov and augment the data from alternate datasources such as a clinical trials management system.
MIT License
17 stars 4 forks source link

Allow multiple elasticsearch hosts in config #75

Closed cdinger closed 4 years ago

cdinger commented 4 years ago

This allows mutiple elasticsearch hosts to be configured if a cluster is being used. Existing single-node configurations will continue to work with no changes.

The local environment check was removed because it unnecessarily defines Elasticsearch::Client's default configuration. If no hosts are configured, Elasticsearch::Client defaults to localhost:9200.

cdinger commented 4 years ago

@johnsja I'm going to close this. I've since learned that Elasticsearch::Client will do this parsing for us. You can just hand it a comma-delimited string of hosts.