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

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

Introduction

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

Prototype

public NodeClientFactoryBean(boolean local) 

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 w  w  w  .  jav  a2s  . c  o  m*/
    bean.setPathData("target/elasticsearchTestData");
    bean.setPathHome("src/test/resources/test-home-dir");

    return bean;
}