public boolean createSingleIndex ( String indexName ) throws ElasticsearchException { CreateIndexRequest indexRequest = new CreateIndexRequest ( indexName ) ; CreateIndexResponse res = this . client . admin ( ) . indices ( ) . create ( indexRequest ) . actionGet ( ) ; return indexExists ( indexName ) ; }
Create an ES Index .