Example usage for org.springframework.data.elasticsearch.core.convert MappingElasticsearchConverter MappingElasticsearchConverter

List of usage examples for org.springframework.data.elasticsearch.core.convert MappingElasticsearchConverter MappingElasticsearchConverter

Introduction

In this page you can find the example usage for org.springframework.data.elasticsearch.core.convert MappingElasticsearchConverter MappingElasticsearchConverter.

Prototype

public MappingElasticsearchConverter(
            MappingContext<? extends ElasticsearchPersistentEntity<?>, ElasticsearchPersistentProperty> mappingContext) 

Source Link

Usage

From source file:org.springframework.data.elasticsearch.core.ElasticsearchTemplate.java

public ElasticsearchTemplate(Client client, ElasticsearchConverter elasticsearchConverter) {
    this.client = client;
    this.elasticsearchConverter = (elasticsearchConverter == null)
            ? new MappingElasticsearchConverter(new SimpleElasticsearchMappingContext())
            : elasticsearchConverter;//from w w  w.  j  a  va2 s.co  m
}