Loading src/main/java/es/redmic/elasticsearchlib/common/repository/RBaseESRepository.java +2 −1 Original line number Diff line number Diff line Loading @@ -176,6 +176,7 @@ public abstract class RBaseESRepository<TModel extends BaseES<?>, TQueryDTO exte try { ESProvider.getClient().admin().indices().create(request).get(); } catch (InterruptedException | ExecutionException e) { // TODO: crear exeption throw new ESNotExistsIndexException(index); } } Loading @@ -188,7 +189,7 @@ public abstract class RBaseESRepository<TModel extends BaseES<?>, TQueryDTO exte String source; try { File resource = new ClassPathResource("mappings/" + index + "/" + type + ".json").getFile(); File resource = new ClassPathResource("/mappings/" + index + "/" + type + ".json").getFile(); source = new String(Files.readAllBytes(resource.toPath())); } catch (IOException e) { Loading Loading
src/main/java/es/redmic/elasticsearchlib/common/repository/RBaseESRepository.java +2 −1 Original line number Diff line number Diff line Loading @@ -176,6 +176,7 @@ public abstract class RBaseESRepository<TModel extends BaseES<?>, TQueryDTO exte try { ESProvider.getClient().admin().indices().create(request).get(); } catch (InterruptedException | ExecutionException e) { // TODO: crear exeption throw new ESNotExistsIndexException(index); } } Loading @@ -188,7 +189,7 @@ public abstract class RBaseESRepository<TModel extends BaseES<?>, TQueryDTO exte String source; try { File resource = new ClassPathResource("mappings/" + index + "/" + type + ".json").getFile(); File resource = new ClassPathResource("/mappings/" + index + "/" + type + ".json").getFile(); source = new String(Files.readAllBytes(resource.toPath())); } catch (IOException e) { Loading