Add repository to search API, fixes #426