swh.search.api.server module¶
-
swh.search.api.server.
load_and_check_config
(config_file, type='elasticsearch')[source]¶ - Check the minimal configuration is set to run the api or raise an
error explanation.
- Parameters
config_file (str) – Path to the configuration file to load
type (str) – configuration type. For ‘local’ type, more checks are done.
- Raises
Error if the setup is not as expected –
- Returns
configuration as a dict