Package org.springframework.data.elasticsearch.core.convert

Examples of org.springframework.data.elasticsearch.core.convert.MappingElasticsearchConverter


  private ElasticsearchRepositoryFactory factory;
  MappingContext<? extends ElasticsearchPersistentEntity<?>, ElasticsearchPersistentProperty> mappingContext = new SimpleElasticsearchMappingContext();

  @Before
  public void before() {
    converter = new MappingElasticsearchConverter(mappingContext);
    when(operations.getElasticsearchConverter()).thenReturn(converter);
    factory = new ElasticsearchRepositoryFactory(operations);
  }
View Full Code Here


    this(client, elasticsearchConverter, null);
  }

  public ElasticsearchTemplate(Client client, ElasticsearchConverter elasticsearchConverter, ResultsMapper resultsMapper) {
    this.client = client;
    this.elasticsearchConverter = (elasticsearchConverter == null) ? new MappingElasticsearchConverter(
        new SimpleElasticsearchMappingContext()) : elasticsearchConverter;
    this.resultsMapper = (resultsMapper == null) ? new DefaultResultMapper(this.elasticsearchConverter.getMappingContext()) : resultsMapper;
  }
View Full Code Here

    private ElasticsearchRepositoryFactory factory;
    MappingContext<? extends ElasticsearchPersistentEntity<?>, ElasticsearchPersistentProperty> mappingContext= new SimpleElasticsearchMappingContext();

    @Before
    public void before(){
        converter = new MappingElasticsearchConverter(mappingContext);
        when(operations.getElasticsearchConverter()).thenReturn(converter);
        factory = new ElasticsearchRepositoryFactory(operations);
    }
View Full Code Here

        this(client, null);
    }

    public ElasticsearchTemplate(Client client, ElasticsearchConverter elasticsearchConverter) {
        this.client = client;
        this.elasticsearchConverter = (elasticsearchConverter == null)? new MappingElasticsearchConverter(new SimpleElasticsearchMappingContext()) : elasticsearchConverter ;
    }
View Full Code Here

TOP

Related Classes of org.springframework.data.elasticsearch.core.convert.MappingElasticsearchConverter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.