Using a custom repository for Elastic