code: public boolean createSingleIndex(String indexName) throws
              ElasticsearchException {
          CreateIndexRequest indexRequest = new CreateIndexRequest(indexName);
          CreateIndexResponse res = this.client.admin().indices().create(indexRequest).actionGet();
          return indexExists(indexName);
      }
docs: Create an ES Index.
  
  @param indexName
  @return true if the index has been created and false if the index has not been created.
  @throws ElasticsearchException