commit
67358e8efd
|
@ -43,6 +43,7 @@ public class ElasticSearchIntegrationTest {
|
||||||
public void before() {
|
public void before() {
|
||||||
elasticsearchTemplate.deleteIndex(Article.class);
|
elasticsearchTemplate.deleteIndex(Article.class);
|
||||||
elasticsearchTemplate.createIndex(Article.class);
|
elasticsearchTemplate.createIndex(Article.class);
|
||||||
|
// don't call putMapping() to test the default mappings
|
||||||
|
|
||||||
Article article = new Article("Spring Data Elasticsearch");
|
Article article = new Article("Spring Data Elasticsearch");
|
||||||
article.setAuthors(asList(johnSmith, johnDoe));
|
article.setAuthors(asList(johnSmith, johnDoe));
|
||||||
|
|
Loading…
Reference in New Issue