added support for indexing into elasticsearch