Allow changing ES host and index.
Add test.