title: ElasticSearch Create Index TypeError
body: <p>I'm using the elasticsearch npm module. Creating an Index results in a TypeError whose message is:</p>
  
  <pre><code>Unable to build a path with those params. Supply at least index
  </code></pre>
  
  <p>The code I'm using looks like:</p>
  
  <pre><code>    var client = new elasticsearch.Client({
          host: 'localhost:9200',
          log: 'trace'
      });
  
      client.indices.create('myindex', function (err, resp) {
          if (err)
              console.log('failed to create ElasticSearch index, ' + err.message);
          else
              console.log('successfully created ElasticSearch index');
      });
  </code></pre>
  
  <p>According to the <a href="http://www.elasticsearch.org/guide/en/elasticsearch/client/javascript-api/current/api-reference.html#api-indices-create" rel="nofollow" title="index create docs">index create docs</a>, I should be able to pass a string with the name of the index. I am confused as to why it's failing in general, and why the error message refers to a path.</p>