Example usage for org.springframework.data.elasticsearch.client NodeClientFactoryBean setPathHome

List of usage examples for org.springframework.data.elasticsearch.client NodeClientFactoryBean setPathHome

Introduction

In this page you can find the example usage for org.springframework.data.elasticsearch.client NodeClientFactoryBean setPathHome.

Prototype

public void setPathHome(String pathHome) 

Source Link

Usage

From source file:example.springdata.elasticsearch.conference.ApplicationConfiguration.java

@Bean
public NodeClientFactoryBean client() {

    NodeClientFactoryBean bean = new NodeClientFactoryBean(true);
    bean.setClusterName(UUID.randomUUID().toString());
    bean.setEnableHttp(false);/*from   ww w . java  2 s.c  o m*/
    bean.setPathData("target/elasticsearchTestData");
    bean.setPathHome("src/test/resources/test-home-dir");

    return bean;
}