public static void createIndex ( RestClient client , String index , boolean force ) throws Exception { String settings = IndexSettingsReader . readSettings ( index ) ; createIndexWithSettings ( client , index , settings , force ) ; }
Create a new index in Elasticsearch . Read also _settings . json if exists in default classpath dir .