public static void createTemplate ( RestClient client , String template , boolean force ) throws Exception { String json = TemplateSettingsReader . readTemplate ( template ) ; createTemplateWithJson ( client , template , json , force ) ; }
Create a template in Elasticsearch . Read read content from default classpath dir .