Hi All,
I like to get filtered criteria with fullTextQuery.
Take below My code: FullTextSession fSession = Search.getFullTextSession(session); Criteria ct = fSession.createCriteria(clazz); ProjectionList projList = Projections.projectionList(); projList.add(Projections.property("feedUrl")); projList.add(Projections.count("feedUrl")); projList.add(Projections.groupProperty("feedUrl")); ct.setProjection(projList); fullTextQuery=fSession.createFullTextQuery(lucenceQuery, c).setCriteriaQuery(ct); fullTextQuery.list();
Here why the group by (groupProperty) function is not working. Since not geting any runtime/compile time exception.
Kindly help me to get resolve this ASAP.
Thanks, John
|