code: @Deprecated
  	public static void createIndexWithSettings(Client client, String index, String settings, boolean force) throws Exception {
  		if (force && isIndexExist(client, index)) {
  			logger.debug("Index [{}] already exists but force set to true. Removing all data!", index);
  			removeIndexInElasticsearch(client, index);
  		}
  		if (force || !isIndexExist(client, index)) {
  			logger.debug("Index [{}] doesn't exist. Creating it.", index);
  			createIndexWithSettingsInElasticsearch(client, index, settings);
  		} else {
  			logger.debug("Index [{}] already exists.", 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
  @param force Remove index if exists (Warning: remove all data)
  @throws Exception if the elasticsearch API call is failing