code: @Deprecated
  	private static void createIndexWithSettingsInElasticsearch(Client client, String index, String settings) throws Exception {
  		logger.trace("createIndex([{}])", index);
  
  		assert client != null;
  		assert index != null;
  
  		CreateIndexRequestBuilder cirb = client.admin().indices().prepareCreate(index);
  
  		// If there are settings for this index, we use it. If not, using Elasticsearch defaults.
  		if (settings != null) {
  			logger.trace("Found settings for index [{}]: [{}]", index, settings);
  			cirb.setSource(settings, XContentType.JSON);
  		}
  
  		CreateIndexResponse createIndexResponse = cirb.execute().actionGet();
  		if (!createIndexResponse.isAcknowledged()) {
  			logger.warn("Could not create index [{}]", index);
  			throw new Exception("Could not create index ["+index+"].");
  		}
  
  		logger.trace("/createIndex([{}])", index);
  	}
docs: Create a new index in Elasticsearch
  @param client Elasticsearch client
  @param index Index name
  @param settings Settings if any, null if no specific settings
  @throws Exception if the elasticsearch API call is failing