We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c0c942 commit b662838Copy full SHA for b662838
src/test/java/org/springframework/data/elasticsearch/core/ElasticsearchTemplateTests.java
@@ -1171,10 +1171,7 @@ public void shouldIndexSampleEntityWithIndexAndTypeAtRuntime() {
1171
}
1172
1173
private IndexQuery getIndexQuery(SampleEntity sampleEntity) {
1174
- IndexQuery indexQuery = new IndexQuery();
1175
- indexQuery.setId(sampleEntity.getId());
1176
- indexQuery.setObject(sampleEntity);
1177
- return indexQuery;
+ return new IndexQueryBuilder().withId(sampleEntity.getId()).withObject(sampleEntity).build();
1178
1179
1180
private List<IndexQuery> getIndexQueries(List<SampleEntity> sampleEntities) {
0 commit comments