code
stringlengths
23
201k
docstring
stringlengths
17
96.2k
func_name
stringlengths
0
235
language
stringclasses
1 value
repo
stringlengths
8
72
path
stringlengths
11
317
url
stringlengths
57
377
license
stringclasses
7 values
@Test void shouldDeleteIterableEntities() { // given String documentId1 = nextIdAsString(); SampleEntity sampleEntity1 = new SampleEntity(); sampleEntity1.setId(documentId1); sampleEntity1.setMessage("hello world."); sampleEntity1.setVersion(System.currentTimeMillis()); String documentId2 = nextIdAsStr...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
shouldDeleteIterableEntities
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldIndexEntity() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setVersion(System.currentTimeMillis()); sampleEntity.setMessage("some message"); // when repository.save(sampleEntity); // th...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
shouldIndexEntity
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldSortByGivenField() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setMessage("world"); repository.save(sampleEntity); String documentId2 = nextIdAsString(); SampleEntity sampleEntity2 = new...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
shouldSortByGivenField
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldReturnSimilarEntities() { // given String sampleMessage = "So we build a web site or an application and want to add search to it, " + "and then it hits us: getting search working is hard. We want our search solution to be fast," + " we want a painless setup and a completely free search sc...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
shouldReturnSimilarEntities
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-142 void shouldIndexNotEmptyList() { // given List<SampleEntity> list = new ArrayList<>(); String documentId = nextIdAsString(); SampleEntity sampleEntity1 = new SampleEntity(); sampleEntity1.setId(documentId); sampleEntity1.setMessage("world"); list.add(sampleEntity1); String document...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
shouldIndexNotEmptyList
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-142 void shouldNotFailOnIndexingEmptyList() { Iterable<SampleEntity> savedEntities = repository.saveAll(Collections.emptyList()); assertThat(savedEntities).hasSize(0); }
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
shouldNotFailOnIndexingEmptyList
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-832 void shouldNotReturnNullValuesInFindAllById() throws IOException { // given String documentId1 = "id-one"; SampleEntity sampleEntity1 = new SampleEntity(); sampleEntity1.setId(documentId1); repository.save(sampleEntity1); String documentId2 = "id-two"; SampleEntity sampleEntity2 = ne...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
shouldNotReturnNullValuesInFindAllById
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
private static List<SampleEntity> createSampleEntitiesWithMessage(String message, int numberOfEntities) { List<SampleEntity> sampleEntities = new ArrayList<>(); long idBase = (long) (Math.random() * 100); long versionBase = System.currentTimeMillis(); for (int i = 0; i < numberOfEntities; i++) { String doc...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
createSampleEntitiesWithMessage
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Nullable public String getId() { return id; }
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
getId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
public void setId(@Nullable String id) { this.id = id; }
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
setId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Nullable public String getType() { return type; }
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
getType
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
public void setType(@Nullable String type) { this.type = type; }
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
setType
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Nullable public String getMessage() { return message; }
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
getMessage
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
public void setMessage(@Nullable String message) { this.message = message; }
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
setMessage
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
public int getRate() { return rate; }
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
getRate
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
public void setRate(int rate) { this.rate = rate; }
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
setRate
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
public boolean isAvailable() { return available; }
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
isAvailable
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
public void setAvailable(boolean available) { this.available = available; }
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
setAvailable
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
public java.lang.@Nullable Long getVersion() { return version; }
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
getVersion
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
public void setVersion(java.lang.@Nullable Long version) { this.version = version; }
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
setVersion
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; SampleEntity that = (SampleEntity) o; if (rate != that.rate) return false; if (available != that.available) return false; if (!Objects.equals(id, that....
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
equals
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Override public int hashCode() { int result = id != null ? id.hashCode() : 0; result = 31 * result + (type != null ? type.hashCode() : 0); result = 31 * result + (message != null ? message.hashCode() : 0); result = 31 * result + rate; result = 31 * result + (available ? 1 : 0); result = 31 * result...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
hashCode
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Bean IndexNameProvider indexNameProvider() { return new IndexNameProvider("simple-reactive-repository"); }
@author Peter-Josef Meisch @author Haibo Liu @since 4.4
indexNameProvider
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryELCIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryELCIntegrationTests.java
Apache-2.0
@Bean QueryParameter queryParameter() { return new QueryParameter("message"); }
a normal bean referenced by SpEL in query
queryParameter
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryELCIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryELCIntegrationTests.java
Apache-2.0
@Test // #2935 @DisplayName("should use collapse_field for search_after in pit search") void shouldUseCollapseFieldForSearchAfterI() { var entity = new SampleEntity(); entity.setId("42"); entity.setMessage("m"); entity.setKeyword("kw"); repository.save(entity).block(); var query = NativeQuery.builder() ...
search_after is used by the reactive search operation, it normally always adds _shard_doc as a tiebreaker sort parameter. This must not be done when a collapse field is used as sort field, as in that case the collapse field must be the only sort field.
shouldUseCollapseFieldForSearchAfterI
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryELCIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryELCIntegrationTests.java
Apache-2.0
@BeforeEach void before() { indexNameProvider.increment(); blocking(operations.indexOps(SampleEntity.class)).createWithMapping(); }
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
before
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test @org.junit.jupiter.api.Order(Integer.MAX_VALUE) public void cleanup() { blocking(operations.indexOps(IndexCoordinates.of(indexNameProvider.getPrefix() + '*'))).delete(); }
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
cleanup
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519 void saveShouldSaveSingleEntity() { repository.save(new SampleEntity()) // .map(SampleEntity::getId) // .flatMap(this::documentWithIdExistsInIndex) // .as(StepVerifier::create) // .expectNext(true).verifyComplete(); }
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
saveShouldSaveSingleEntity
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
private Mono<Boolean> documentWithIdExistsInIndex(String id) { return operations.exists(id, IndexCoordinates.of(indexNameProvider.indexName())); }
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
documentWithIdExistsInIndex
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // #3093 @DisplayName("should save all from empty collection") void shouldSaveAllFromEmptyCollection() { repository.saveAll(Collections.emptyList()) .as(StepVerifier::create) .expectNextCount(0) .verifyComplete(); }
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
shouldSaveAllFromEmptyCollection
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // #3093 @DisplayName("should save all from empty flux") void shouldSaveAllFromEmptyFlux() { repository.saveAll(Flux.empty()) .as(StepVerifier::create) .expectNextCount(0) .verifyComplete(); }
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
shouldSaveAllFromEmptyFlux
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519 void saveShouldComputeMultipleEntities() { repository.saveAll(Arrays.asList(new SampleEntity(), new SampleEntity(), new SampleEntity())) /**/.map(SampleEntity::getId) // .flatMap(this::documentWithIdExistsInIndex) // .as(StepVerifier::create) // .expectNext(true) // .expectNe...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
saveShouldComputeMultipleEntities
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519, DATAES-767, DATAES-822 void findByIdShouldErrorIfIndexDoesNotExist() { blocking(operations.indexOps(SampleEntity.class)).delete(); repository.findById("id-two") // .as(StepVerifier::create) // .expectError(NoSuchIndexException.class) // .verify(); }
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
findByIdShouldErrorIfIndexDoesNotExist
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519 void findShouldRetrieveSingleEntityById() { bulkIndex(new SampleEntity("id-one"), // new SampleEntity("id-two"), // new SampleEntity("id-three")) // .block(); repository.findById("id-two").as(StepVerifier::create)// .consumeNextWith(it -> assertThat(it.getId()).isEqualTo("id-t...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
findShouldRetrieveSingleEntityById
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519 void findByIdShouldCompleteIfNothingFound() { bulkIndex(new SampleEntity("id-one"), // new SampleEntity("id-two"), // new SampleEntity("id-three")) // .block(); repository.findById("does-not-exist").as(StepVerifier::create) // .verifyComplete(); }
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
findByIdShouldCompleteIfNothingFound
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-720 void findAllShouldReturnAllElements() { // make sure to be above the default page size of the Query interface int count = DEFAULT_PAGE_SIZE * 2; bulkIndex(IntStream.range(1, count + 1) // .mapToObj(it -> new SampleEntity(String.valueOf(it))) // .toArray(SampleEntity[]::new)) // .b...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
findAllShouldReturnAllElements
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519 void findAllByIdByIdShouldCompleteIfIndexDoesNotExist() { repository.findAllById(Arrays.asList("id-two", "id-two")).as(StepVerifier::create).verifyComplete(); }
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
findAllByIdByIdShouldCompleteIfIndexDoesNotExist
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519, #2417 void findAllByIdShouldRetrieveMatchingDocuments() { // create more than 10 documents to see that the number of input ids is set as requested size int numEntities = 20; List<String> ids = new ArrayList<>(numEntities); List<SampleEntity> entities = new ArrayList<>(numEntities); for ...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
findAllByIdShouldRetrieveMatchingDocuments
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519 void findAllByIdShouldCompleteWhenNothingFound() { bulkIndex(new SampleEntity("id-one"), // new SampleEntity("id-two"), // new SampleEntity("id-three")) // .block(); repository.findAllById(Arrays.asList("can't", "touch", "this")) // .as(StepVerifier::create)// .verifyCompl...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
findAllByIdShouldCompleteWhenNothingFound
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-717 void shouldReturnFluxOfSearchHit() { bulkIndex(new SampleEntity("id-one", "message"), // new SampleEntity("id-two", "message"), // new SampleEntity("id-three", "message")) // .block(); repository.queryAllByMessage("message") // .as(StepVerifier::create) // .expectNextMatch...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
shouldReturnFluxOfSearchHit
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-717 void shouldReturnFluxOfSearchHitForStringQuery() { bulkIndex(new SampleEntity("id-one", "message"), // new SampleEntity("id-two", "message"), // new SampleEntity("id-three", "message")) // .block(); repository.queryByMessageWithString("message") // .as(StepVerifier::create) //...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
shouldReturnFluxOfSearchHitForStringQuery
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldReturnSearchHitsForStringQuerySpEL() { bulkIndex(new SampleEntity("id-one", "message"), // new SampleEntity("id-two", "message"), // new SampleEntity("id-three", "message")) // .block(); repository.queryByStringSpEL("message") .as(StepVerifier::create) // .expectNextMatches(se...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
shouldReturnSearchHitsForStringQuerySpEL
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldRaiseExceptionForNullStringQuerySpEL() { bulkIndex(new SampleEntity("id-one", "message"), // new SampleEntity("id-two", "message"), // new SampleEntity("id-three", "message")) // .block(); ConversionException thrown = assertThrows(ConversionException.class, () -> repository.queryByStr...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
shouldRaiseExceptionForNullStringQuerySpEL
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldReturnSearchHitsForParameterPropertyQuerySpEL() { bulkIndex(new SampleEntity("id-one", "message"), // new SampleEntity("id-two", "message"), // new SampleEntity("id-three", "message")) // .block(); QueryParameter param = new QueryParameter("message"); repository.queryByParameterPro...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
shouldReturnSearchHitsForParameterPropertyQuerySpEL
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldReturnSearchHitsForBeanQuerySpEL() { bulkIndex(new SampleEntity("id-one", "message"), // new SampleEntity("id-two", "message"), // new SampleEntity("id-three", "message")) // .block(); repository.queryByBeanPropertySpEL() .as(StepVerifier::create) // .expectNextMatches(searchH...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
shouldReturnSearchHitsForBeanQuerySpEL
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldReturnSearchHitsForCollectionQuerySpEL() { bulkIndex(new SampleEntity("id-one", "message"), // new SampleEntity("id-two", "message"), // new SampleEntity("id-three", "message")) // .block(); repository.queryByCollectionSpEL(List.of("message")) .as(StepVerifier::create) // .exp...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
shouldReturnSearchHitsForCollectionQuerySpEL
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldRaiseExceptionForNullCollectionQuerySpEL() { bulkIndex(new SampleEntity("id-one", "message"), // new SampleEntity("id-two", "message"), // new SampleEntity("id-three", "message")) // .block(); ConversionException thrown = assertThrows(ConversionException.class, () -> repository.queryB...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
shouldRaiseExceptionForNullCollectionQuerySpEL
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldNotReturnSearchHitsForEmptyCollectionQuerySpEL() { bulkIndex(new SampleEntity("id-one", "message"), // new SampleEntity("id-two", "message"), // new SampleEntity("id-three", "message")) // .block(); repository.queryByCollectionSpEL(List.of()) .as(StepVerifier::create) // .expe...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
shouldNotReturnSearchHitsForEmptyCollectionQuerySpEL
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldNotReturnSearchHitsForCollectionQueryWithOnlyNullValuesSpEL() { bulkIndex(new SampleEntity("id-one", "message"), // new SampleEntity("id-two", "message"), // new SampleEntity("id-three", "message")) // .block(); List<String> params = new ArrayList<>(); params.add(null); repositor...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
shouldNotReturnSearchHitsForCollectionQueryWithOnlyNullValuesSpEL
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldIgnoreNullValuesInCollectionQuerySpEL() { bulkIndex(new SampleEntity("id-one", "message"), // new SampleEntity("id-two", "message"), // new SampleEntity("id-three", "message")) // .block(); repository.queryByCollectionSpEL(Arrays.asList("message", null)) .as(StepVerifier::create) ...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
shouldIgnoreNullValuesInCollectionQuerySpEL
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldReturnSearchHitsForParameterPropertyCollectionQuerySpEL() { bulkIndex(new SampleEntity("id-one", "message"), // new SampleEntity("id-two", "message"), // new SampleEntity("id-three", "message")) // .block(); QueryParameter param = new QueryParameter("message"); repository.queryByPa...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
shouldReturnSearchHitsForParameterPropertyCollectionQuerySpEL
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldReturnSearchHitsForParameterPropertyCollectionQuerySpELWithParamAnnotation() { bulkIndex(new SampleEntity("id-one", "message"), // new SampleEntity("id-two", "message"), // new SampleEntity("id-three", "message")) // .block(); QueryParameter param = new QueryParameter("message"); r...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
shouldReturnSearchHitsForParameterPropertyCollectionQuerySpELWithParamAnnotation
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-372 void shouldReturnHighlightsOnAnnotatedMethod() { bulkIndex(new SampleEntity("id-one", "message"), // new SampleEntity("id-two", "message"), // new SampleEntity("id-three", "message")) // .block(); repository.queryAllByMessage("message") // .as(StepVerifier::create) // .exp...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
shouldReturnHighlightsOnAnnotatedMethod
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-372 void shouldReturnHighlightsOnAnnotatedStringQueryMethod() { bulkIndex(new SampleEntity("id-one", "message"), // new SampleEntity("id-two", "message"), // new SampleEntity("id-three", "message")) // .block(); repository.queryByMessageWithString("message") // .as(StepVerifier::c...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
shouldReturnHighlightsOnAnnotatedStringQueryMethod
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldReturnDifferentHighlightsOnAnnotatedStringQueryMethod() { bulkIndex(new SampleEntity("id-one", "abc xyz"), // new SampleEntity("id-two", "abc xyz"), // new SampleEntity("id-three", "abc xyz")) // .block(); repository.queryByMessageWithSeparateHighlight("abc", "abc") // .as(StepVe...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
shouldReturnDifferentHighlightsOnAnnotatedStringQueryMethod
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldReturnDifferentHighlightsOnAnnotatedStringQueryMethodSpEL() { bulkIndex(new SampleEntity("id-one", "abc xyz"), // new SampleEntity("id-two", "abc xyz"), // new SampleEntity("id-three", "abc xyz")) // .block(); repository.queryByMessageWithSeparateHighlightSpEL("abc", "abc") // .a...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
shouldReturnDifferentHighlightsOnAnnotatedStringQueryMethodSpEL
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519, DATAES-767, DATAES-822 void countShouldErrorWhenIndexDoesNotExist() { blocking(operations.indexOps(SampleEntity.class)).delete(); repository.count() // .as(StepVerifier::create) // .expectError(NoSuchIndexException.class) // .verify(); }
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
countShouldErrorWhenIndexDoesNotExist
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519 void countShouldCountDocuments() { bulkIndex(new SampleEntity("id-one"), // new SampleEntity("id-two")) // .block(); repository.count().as(StepVerifier::create).expectNext(2L).verifyComplete(); }
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
countShouldCountDocuments
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519 void existsByIdShouldReturnTrueIfExists() { bulkIndex(new SampleEntity("id-one", "message"), // new SampleEntity("id-two", "test message"), // new SampleEntity("id-three", "test test")) // .block(); repository.existsById("id-two") // .as(StepVerifier::create) // .expectNex...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
existsByIdShouldReturnTrueIfExists
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519 void existsByIdShouldReturnFalseIfNotExists() { bulkIndex(new SampleEntity("id-one", "message"), // new SampleEntity("id-two", "test message"), // new SampleEntity("id-three", "test test")) // .block(); repository.existsById("wrecking ball") // .as(StepVerifier::create) // ...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
existsByIdShouldReturnFalseIfNotExists
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519 void countShouldCountMatchingDocuments() { bulkIndex(new SampleEntity("id-one", "message"), // new SampleEntity("id-two", "test message"), // new SampleEntity("id-three", "test test")).block(); repository.countAllByMessage("test") // .as(StepVerifier::create) // .expectNext(2L...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
countShouldCountMatchingDocuments
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // #1156 @DisplayName("should count with string query") void shouldCountWithStringQuery() { bulkIndex(new SampleEntity("id-one", "message"), // new SampleEntity("id-two", "test message"), // new SampleEntity("id-three", "test test")).block(); repository.retrieveCountByText("test") // .as(StepV...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
shouldCountWithStringQuery
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519 void existsShouldReturnTrueIfExists() { bulkIndex(new SampleEntity("id-one", "message"), // new SampleEntity("id-two", "test message"), // new SampleEntity("id-three", "test test")) // .block(); repository.existsAllByMessage("message") // .as(StepVerifier::create) // .expe...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
existsShouldReturnTrueIfExists
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519 void existsShouldReturnFalseIfNotExists() { bulkIndex(new SampleEntity("id-one", "message"), // new SampleEntity("id-two", "test message"), // new SampleEntity("id-three", "test test")) // .block(); repository.existsAllByMessage("these days") // .as(StepVerifier::create) // ...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
existsShouldReturnFalseIfNotExists
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519 void deleteByIdShouldCompleteIfNothingDeleted() { bulkIndex(new SampleEntity("id-one"), // new SampleEntity("id-two")) // .block(); repository.deleteById("does-not-exist").as(StepVerifier::create).verifyComplete(); }
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
deleteByIdShouldCompleteIfNothingDeleted
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519, DATAES-767, DATAES-822, DATAES-678 void deleteByIdShouldCompleteWhenIndexDoesNotExist() { repository.deleteById("does-not-exist") // .as(StepVerifier::create) // .verifyComplete(); }
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
deleteByIdShouldCompleteWhenIndexDoesNotExist
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519 void deleteByIdShouldDeleteEntry() { SampleEntity toBeDeleted = new SampleEntity("id-two"); bulkIndex(new SampleEntity("id-one"), toBeDeleted) // .block(); repository.deleteById(toBeDeleted.getId()).as(StepVerifier::create).verifyComplete(); assertThat(documentWithIdExistsInIndex(toB...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
deleteByIdShouldDeleteEntry
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-976 void deleteAllByIdShouldDeleteEntry() { SampleEntity toBeDeleted = new SampleEntity("id-two"); bulkIndex(new SampleEntity("id-one"), toBeDeleted) // .block(); repository.deleteAllById(Collections.singletonList(toBeDeleted.getId())).as(StepVerifier::create).verifyComplete(); assertTha...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
deleteAllByIdShouldDeleteEntry
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519 void deleteShouldDeleteEntry() { SampleEntity toBeDeleted = new SampleEntity("id-two"); bulkIndex(new SampleEntity("id-one"), toBeDeleted) // .block(); repository.delete(toBeDeleted).as(StepVerifier::create).verifyComplete(); assertThat(documentWithIdExistsInIndex(toBeDeleted.getId()...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
deleteShouldDeleteEntry
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519 void deleteAllShouldDeleteGivenEntries() { SampleEntity toBeDeleted = new SampleEntity("id-one"); SampleEntity hangInThere = new SampleEntity("id-two"); SampleEntity toBeDeleted2 = new SampleEntity("id-three"); bulkIndex(toBeDeleted, hangInThere, toBeDeleted2) // .block(); reposito...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
deleteAllShouldDeleteGivenEntries
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519 void deleteAllShouldDeleteAllEntries() { bulkIndex(new SampleEntity("id-one"), // new SampleEntity("id-two"), // new SampleEntity("id-three")) // .block(); repository.deleteAll().as(StepVerifier::create).verifyComplete(); repository.count() // .as(StepVerifier::create) // ...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
deleteAllShouldDeleteAllEntries
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519 void derivedFinderMethodShouldBeExecutedCorrectly() { bulkIndex(new SampleEntity("id-one", "message"), // new SampleEntity("id-two", "test message"), // new SampleEntity("id-three", "test test")) // .block(); repository.findAllByMessageLike("test") // .as(StepVerifier::create)...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
derivedFinderMethodShouldBeExecutedCorrectly
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519 void derivedFinderMethodShouldBeExecutedCorrectlyWhenGivenPublisher() { bulkIndex(new SampleEntity("id-one", "message"), // new SampleEntity("id-two", "test message"), // new SampleEntity("id-three", "test test")) // .block(); repository.findAllByMessage(Mono.just("test")) // ...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
derivedFinderMethodShouldBeExecutedCorrectlyWhenGivenPublisher
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519 void derivedFinderWithDerivedSortMethodShouldBeExecutedCorrectly() { bulkIndex(new SampleEntity("id-one", "test", 3), // new SampleEntity("id-two", "test test", 1), // new SampleEntity("id-three", "test test", 2)) // .block(); repository.findAllByMessageLikeOrderByRate("test") // ...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
derivedFinderWithDerivedSortMethodShouldBeExecutedCorrectly
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519 void derivedFinderMethodWithSortParameterShouldBeExecutedCorrectly() { bulkIndex(new SampleEntity("id-one", "test", 3), // new SampleEntity("id-two", "test test", 1), // new SampleEntity("id-three", "test test", 2)) // .block(); repository.findAllByMessage("test", Sort.by(Order.as...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
derivedFinderMethodWithSortParameterShouldBeExecutedCorrectly
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519 void derivedFinderMethodWithPageableParameterShouldBeExecutedCorrectly() { bulkIndex(new SampleEntity("id-one", "test", 3), // new SampleEntity("id-two", "test test", 1), // new SampleEntity("id-three", "test test", 2)) // .block(); repository.findAllByMessage("test", PageRequest....
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
derivedFinderMethodWithPageableParameterShouldBeExecutedCorrectly
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519 void derivedFinderMethodReturningMonoShouldBeExecutedCorrectly() { bulkIndex(new SampleEntity("id-one", "message"), // new SampleEntity("id-two", "test message"), // new SampleEntity("id-three", "test test")) // .block(); repository.findFirstByMessageLike("test") // .as(StepVe...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
derivedFinderMethodReturningMonoShouldBeExecutedCorrectly
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519 void annotatedFinderMethodShouldBeExecutedCorrectly() { int count = 30; SampleEntity[] sampleEntities = IntStream.range(1, count + 1) .mapToObj(i -> new SampleEntity("id-" + i, "test " + i)).collect(Collectors.toList()) .toArray(new SampleEntity[count]); bulkIndex(sampleEntities).bl...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
annotatedFinderMethodShouldBeExecutedCorrectly
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // #1917 void annotatedFinderMethodPagedShouldBeExecutedCorrectly() { int count = 30; SampleEntity[] sampleEntities = IntStream.range(1, count + 1) .mapToObj(i -> new SampleEntity("id-" + i, "test " + i)).collect(Collectors.toList()) .toArray(new SampleEntity[count]); bulkIndex(sampleEntities).bl...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
annotatedFinderMethodPagedShouldBeExecutedCorrectly
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519 void derivedDeleteMethodShouldBeExecutedCorrectly() { bulkIndex(new SampleEntity("id-one", "message"), // new SampleEntity("id-two", "test message"), // new SampleEntity("id-three", "test test")) // .block(); repository.deleteAllByMessage("message") // .as(StepVerifier::create...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
derivedDeleteMethodShouldBeExecutedCorrectly
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // #2135 void FluxOfSearchHitForArrayQuery() { bulkIndex(new SampleEntity("id-one", "message1"), // new SampleEntity("id-two", "message2"), // new SampleEntity("id-three", "message3")) // .block(); repository.findAllViaAnnotatedQueryByMessageIn(List.of("message1", "message3")) // .as(StepVer...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
FluxOfSearchHitForArrayQuery
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // #2135 void FluxOfSearchHitForIntegerArrayQuery() { bulkIndex(new SampleEntity("id-one", "test", 3), // new SampleEntity("id-two", "test test", 1), // new SampleEntity("id-three", "test test", 2)) // .block(); repository.findAllViaAnnotatedQueryByRatesIn(List.of(2, 3)) // .as(StepVerifier:...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
FluxOfSearchHitForIntegerArrayQuery
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // #2135 void FluxOfSearchHitForStringAndIntegerArrayQuery() { bulkIndex(new SampleEntity("id-one", "message1", 1), // new SampleEntity("id-two", "message2", 2), // new SampleEntity("id-three", "message3", 3), // new SampleEntity("id-four", "message4", 4), // new SampleEntity("id-five", "messag...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
FluxOfSearchHitForStringAndIntegerArrayQuery
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // #2146 @DisplayName("should use sourceIncludes from annotation") void shouldUseSourceIncludesFromAnnotation() { var entity = new SampleEntity(); entity.setId("42"); entity.setMessage("message"); entity.setCustomFieldNameMessage("customFieldNameMessage"); entity.setType("type"); entity.setKeyword(...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
shouldUseSourceIncludesFromAnnotation
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // #2146 @DisplayName("should use sourceIncludes from parameter") void shouldUseSourceIncludesFromParameter() { var entity = new SampleEntity(); entity.setId("42"); entity.setMessage("message"); entity.setCustomFieldNameMessage("customFieldNameMessage"); entity.setType("type"); entity.setKeyword("k...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
shouldUseSourceIncludesFromParameter
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test @DisplayName("should use sourceIncludes from parameter SpEL") void shouldUseSourceIncludesFromParameterSpEL() { var entity = new SampleEntity(); entity.setId("42"); entity.setMessage("message"); entity.setCustomFieldNameMessage("customFieldNameMessage"); entity.setType("type"); entity.setKeyword("k...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
shouldUseSourceIncludesFromParameterSpEL
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // #2146 @DisplayName("should use sourceExcludes from annotation") void shouldUseSourceExcludesFromAnnotation() { var entity = new SampleEntity(); entity.setId("42"); entity.setMessage("message"); entity.setCustomFieldNameMessage("customFieldNameMessage"); entity.setType("type"); entity.setKeyword(...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
shouldUseSourceExcludesFromAnnotation
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // #2146 @DisplayName("should use source excludes from parameter") void shouldUseSourceExcludesFromParameter() { var entity = new SampleEntity(); entity.setId("42"); entity.setMessage("message"); entity.setCustomFieldNameMessage("customFieldNameMessage"); entity.setType("type"); entity.setKeyword("...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
shouldUseSourceExcludesFromParameter
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test @DisplayName("should use source excludes from parameter SpEL") void shouldUseSourceExcludesFromParameterSpEL() { var entity = new SampleEntity(); entity.setId("42"); entity.setMessage("message"); entity.setCustomFieldNameMessage("customFieldNameMessage"); entity.setType("type"); entity.setKeyword("...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
shouldUseSourceExcludesFromParameterSpEL
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // #2496 @DisplayName("should save data from Flux and return saved data in a flux") void shouldSaveDataFromFluxAndReturnSavedDataInAFlux() { var count = 12_345; var entityList = IntStream.rangeClosed(1, count)// .mapToObj(SampleEntity::of) // .collect(Collectors.toList()); var entityFlux = Flux.f...
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
shouldSaveDataFromFluxAndReturnSavedDataInAFlux
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
Mono<Void> bulkIndex(SampleEntity... entities) { return operations.saveAll(Arrays.asList(entities), IndexCoordinates.of(indexNameProvider.indexName())).then(); }
@author Christoph Strobl @author Peter-Josef Meisch @author Jens Schauder @author Haibo Liu
bulkIndex
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
static SampleEntity of(int id) { var entity = new SampleEntity(); entity.setId("" + id); entity.setMessage(" message " + id); return entity; }
The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will not accept a null parameter as query value.
of
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Nullable public String getId() { return id; }
The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will not accept a null parameter as query value.
getId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
public void setId(@Nullable String id) { this.id = id; }
The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will not accept a null parameter as query value.
setId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Nullable public String getType() { return type; }
The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will not accept a null parameter as query value.
getType
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
public void setType(@Nullable String type) { this.type = type; }
The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will not accept a null parameter as query value.
setType
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Nullable public String getKeyword() { return keyword; }
The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will not accept a null parameter as query value.
getKeyword
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
public void setKeyword(@Nullable String keyword) { this.keyword = keyword; }
The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will not accept a null parameter as query value.
setKeyword
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Nullable public String getMessage() { return message; }
The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will not accept a null parameter as query value.
getMessage
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0
public void setMessage(@Nullable String message) { this.message = message; }
The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will not accept a null parameter as query value.
setMessage
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryIntegrationTests.java
Apache-2.0