Updated toElasticsearch for new core.Index syntax

the latest version of elastigo changed the args to the Index method.