如何将休眠条件 API 与 Lucene 休眠搜索结合起来?
org.hibernate.Criteria criteria = session.createCriteria(class);
criteria.add(Restrictions.ne(property, value));
FullTextQuery fullTextQuery = ftm.createFullTextQuery(booleanQuery, class);
fullTextQuery.setCriteriaQuery(criteria);
Object result = fullTextQuery.getResultList();
在上面的例子中,hibernate 不遵守限制吗?