How to start elasticsearch 5.1 embedded in my java application?

后端 未结 4 1212
轮回少年
轮回少年 2020-12-03 21:41

With elasticsearch 2.x I used the following code to launch an embedded Node for testing:

@Bean
public Node elasticSearchTestNode() {
    return NodeBuilder.n         


        
4条回答
  •  攒了一身酷
    2020-12-03 22:35

    It's not supported.

    You should read this blog post.

    EDIT:

    This is how I solved the integration tests with maven problem.

提交回复
热议问题