Making elasticsearch index configurable, closes #39