Package org.springframework.data.elasticsearch.builder

Examples of org.springframework.data.elasticsearch.builder.SampleEntityBuilder


  @Test
  public void shouldTestResultsAcrossMultipleIndices() {
    // given
    String documentId1 = randomNumeric(5);
    SampleEntity sampleEntity1 = new SampleEntityBuilder(documentId1).message("some message")
        .version(System.currentTimeMillis()).build();

    IndexQuery indexQuery1 = new IndexQueryBuilder().withId(sampleEntity1.getId())
        .withIndexName("test-index-1")
        .withObject(sampleEntity1)
        .build();

    String documentId2 = randomNumeric(5);
    SampleEntity sampleEntity2 = new SampleEntityBuilder(documentId2).message("some test message")
        .version(System.currentTimeMillis()).build();

    IndexQuery indexQuery2 = new IndexQueryBuilder().withId(sampleEntity2.getId())
        .withIndexName("test-index-2")
        .withObject(sampleEntity2)
View Full Code Here

TOP

Related Classes of org.springframework.data.elasticsearch.builder.SampleEntityBuilder

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.