Added params for repo

make the module smarter for using the elastic search repo.