【发布时间】:2014-02-26 21:32:49
【问题描述】:
我正在尝试使用 @IndexEmbedded 注释进行索引。当我使用 Luke 进行检查时,结果是正确的。(我正在获取 List 的所有元素)。
但是当我尝试在 Lucene Query 的投影中使用这个列表时,我得到了 null。
我在某处读到 “投影不适用于通过 @IndexedEmbedded 索引的集合或地图”
有没有其他方法可以投影这个列表。
@Indexed
public class Item {
...
@IndexedEmbedded
private List<Keyword> keywords;
...
}
@Indexed
public class Keyword {
...
@Field
private String value;
...
}
【问题讨论】:
标签: java lucene indexing hibernate-search