`get_indexes` may raise a `InvalidIndexError` exception if the provided "mapping_type_name" can't be found (if the ES_WRITE_INDEXES setting isn't defined or the wanted index isn't defined in it). it then falls back to using the ES_INDEXES setting.