AEM 6.2 "fn:lowercase" is not working
Dear Team,
. How I can incoperate case sensitive search in AEM 6.2 with predicates.
I have tried below mentioned code unfortunately it doesn't work for me.But it is working fine in 5.6.1
Predicate authorNamePredicate = new Predicate("@authorName", "property");
authorNamePredicate.set(JcrPropertyPredicateEvaluator.OPERATION, JcrPropertyPredicateEvaluator.OP_LIKE);
authorNamePredicate
.set("property", "@fn:lower-case(@" + JcrConstants.JCR_CONTENT + "/" + "authorName" + ")");
authorNamePredicate.set("value", "%" + author.toLowerCase() + "%");
authorgroup.add(authorNamePredicate);
@fn:lower-case(" - is converted to fn:lower-case_x0028_ this is creating issue in AEM 6.2
"/jcr:root/content/geo//*[@jcr:primaryType = 'cq:Page' and not(jcr:content/@hideInNav) and jcr:content/@jcr:title != 'Master Article' and jcr:like(fn:lower-case_x0028_/jcr:content/@authorName_x0029_, 'soumik dey')]/rep:excerpt(.) order by jcr:content/@cq:lastModified descending" This is the query it generating
Thanks!
Unnikrishnan