我想写一个像这样的lucene查询
" from activity where metaentityByEntity.id in(select metaentityByEntity.id from userentity where user.id=1)"
我的域类是:
public class Activity implements java.io.Serializable {
private Long id;
private Date timeStamp;
private User user;
@IndexedEmbedded
private Metaentity metaentityByEntity;
}
public class Userentitydetail implements java.io.Serializable {
private Long id;
private Date timeStamp;
private Metaentity metaentityByEntity;
@IndexedEmbedded
private User user;
private Metaentity metaentityByProjectId;
private byte unfollow;
private Byte isAssociated;
}
但是如何编写从多个索引中搜索的 lucene 查询呢?基本上我在做休眠搜索。
谢谢。