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

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

Introduction

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

Prototype

public void setEnableHttp(boolean enableHttp) 

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);
    bean.setPathData("target/elasticsearchTestData");
    bean.setPathHome("src/test/resources/test-home-dir");

    return bean;// w  ww  .jav  a  2s  .c  o m
}