Package org.springframework.data.elasticsearch.entities

Examples of org.springframework.data.elasticsearch.entities.DynamicSettingAndMappingEntity


  DATAES-64
  */
  @Test
  public void shouldSearchOnGivenTokenizerUsingGivenDynamicSettingsForGivenIndex() {
    //given
    DynamicSettingAndMappingEntity dynamicSettingAndMappingEntity1 = new DynamicSettingAndMappingEntity();
    dynamicSettingAndMappingEntity1.setId(RandomStringUtils.randomNumeric(5));
    dynamicSettingAndMappingEntity1.setName("test-setting1");
    dynamicSettingAndMappingEntity1.setEmail("test_setting1@test.com");

    repository.save(dynamicSettingAndMappingEntity1);

    DynamicSettingAndMappingEntity dynamicSettingAndMappingEntity2 = new DynamicSettingAndMappingEntity();
    dynamicSettingAndMappingEntity2.setId(RandomStringUtils.randomNumeric(5));
    dynamicSettingAndMappingEntity2.setName("test-setting2");
    dynamicSettingAndMappingEntity2.setEmail("test_setting2@test.com");

    repository.save(dynamicSettingAndMappingEntity2);

    //when
    SearchQuery searchQuery = new NativeSearchQueryBuilder()
View Full Code Here

TOP

Related Classes of org.springframework.data.elasticsearch.entities.DynamicSettingAndMappingEntity

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.