Add repository filtered by document See #2417