title: ElasticSearch - index change not flushed
body: <p>I use the elasticsearch module in typescript, and for some reason, the changes I apply to the indexes (or even the new documents I insert) are not detected by the code...</p>
  
  <p>Here's an example bellow:</p>
  
  <pre class="lang-js prettyprint-override"><code>        try {
              await this._client.indices.delete({
                  index: 'databases, schemas, tables',
                  ignore_unavailable: true
              });
          } catch (err) {
              console.error('Error trying to delete the indexes...');
              console.error(err);
          }
  
          try {
              await this._client.indices.create({ index: 'databases' });
              await this._client.indices.create({ index: 'schemas' });
              await this._client.indices.create({ index: 'tables' });
          } catch (err) {
              console.error('Error trying to create the indexes...');
              console.error(err);
          }
  
          try {
              await this._client.indices.flush({
                  index: 'databases, schemas, tables',
              });
          } catch (err) {
              console.error('Error trying to flush...');
              console.error(err);
          }
  </code></pre>
  
  <p>The result of this code is:</p>
  
  <pre><code>Error trying to create the indexes...
  ResponseError: resource_already_exists_exception
  ...
  
  Error trying to flush...
  ResponseError: index_not_found_exception
  ...
  </code></pre>
  
  <p>So this really makes no sense to me.. Am i missing something obvious?</p>