code: public static void start(RestClient client, String root, boolean merge, boolean force) throws Exception {
  		logger.info("starting automatic settings/mappings discovery");
  
  		// create templates
  		List<String> templateNames = TemplateFinder.findTemplates(root);
  		for (String templateName : templateNames) {
  			createTemplate(client, root, templateName, force);
  		}
  
  		// create indices
  		Collection<String> indexNames = IndexFinder.findIndexNames(root);
  		for (String indexName : indexNames) {
  			createIndex(client, root, indexName, force);
  			updateSettings(client, root, indexName);
  		}
  		logger.info("start done. Rock & roll!");
  	}
docs: Automatically scan classpath and create indices, mappings, templates, and other settings.
  @param client elasticsearch client
  @param root dir within the classpath
  @param merge whether or not to merge mappings
  @param force whether or not to force creation of indices and templates
  @throws Exception when beyonder can not start
  @since 6.1