Elasticsearch: refactoring.

 * elasticsearch endpoint string is now const.
 * tiny renaming done.
 * more concrete template argument names.
Elasticsearch: let the compiler deduce template arguments itself.