support changing indexName with river without loosing the correct collection name