Examples of MappingElasticsearchConverter


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

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

    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

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

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

        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
Copyright © 2018 www.massapi.com. 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.