DATAES-754 - Completion field deserialization is failing due to class cast error.
Original PR: #399
This commit is contained in:
committed by
GitHub
parent
bf51de3805
commit
251adc1eec
@@ -87,7 +87,8 @@ public class ElasticsearchTemplateCompletionTests {
|
||||
indexQueries.add(new CompletionEntityBuilder("4").name("Artur Konczak").suggest(new String[] { "Artur", "Konczak" })
|
||||
.buildIndex());
|
||||
|
||||
operations.bulkIndex(indexQueries, IndexCoordinates.of("test-index-core-completion").withTypes("completion-type"));
|
||||
IndexCoordinates index = IndexCoordinates.of("test-index-core-completion");
|
||||
operations.bulkIndex(indexQueries, index);
|
||||
operations.indexOps(CompletionEntity.class).refresh();
|
||||
}
|
||||
|
||||
@@ -151,6 +152,13 @@ public class ElasticsearchTemplateCompletionTests {
|
||||
assertThat(options.get(1).getText().string()).isIn("Marchand", "Mohsin");
|
||||
}
|
||||
|
||||
@Test // DATAES-754
|
||||
void shouldRetrieveEntityWithCompletion() {
|
||||
loadCompletionObjectEntities();
|
||||
IndexCoordinates index = IndexCoordinates.of("test-index-core-completion");
|
||||
operations.get("1", CompletionEntity.class, index);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void shouldFindSuggestionsForGivenCriteriaQueryUsingAnnotatedCompletionEntity() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user