added bwc for get repository and search_shards