【发布时间】:2016-02-13 19:47:38
【问题描述】:
@Document(indexName = "test", type = "author")
public class Author {
private String authorId;
private List<Book> books;
}
@Document(indexName = "test", type = "book")
public class Book {
private String bookId;
}
在我保存作者时使用 spring data elasticsearch 我希望将书保存在不同的实体而不是子文档中。有可能吗?
【问题讨论】:
标签: java spring elasticsearch spring-data