この会話は、活動がないためロックされています。新しい投稿を作成してください。
この会話は、活動がないためロックされています。新しい投稿を作成してください。
final Predicate authorNamePredicate = new Predicate("@authorName", "property");
authorNamePredicate.set(JcrPropertyPredicateEvaluator.OPERATION, JcrPropertyPredicateEvaluator.OP_LIKE);
authorNamePredicate.set(QueryUtils.PROPERTY, "@fn:lower-case("+CharacterConstants.SLASH +JcrConstants.JCR_CONTENT + CharacterConstants.SLASH + "authorName)");
authorNamePredicate.set(QueryUtils.VALUE, authorName.toLowerCase());
group.add(authorNamePredicate);
This is the code used to generate xpath query that is added below
=/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
special characters generating area are highlighted in bold. Could you please help me to sort out this.
Thanks!,
Devakrishna
解決済! 解決策の投稿を見る。
表示
返信
いいね!の合計
Hi
Please have a look at this forum thread:-
// we never officially supported functions. Hence not a bug. You have to file enhancement request to support xpath function. it is a known problem with the OAK repository
Please create a day care ticket for this.
Reference post telling about toupper/toLower in AEM :- http://www.wemblog.com/2013/04/how-to-create-custom-query-predicate-in.html
// You need to create a create custom query predicate.
I hope this would help you.
~kautuk
表示
返信
いいね!の合計
What version of AEM are you using?
表示
返信
いいね!の合計
AEM 6.2
表示
返信
いいね!の合計
Hi
Please have a look at this forum thread:-
// we never officially supported functions. Hence not a bug. You have to file enhancement request to support xpath function. it is a known problem with the OAK repository
Please create a day care ticket for this.
Reference post telling about toupper/toLower in AEM :- http://www.wemblog.com/2013/04/how-to-create-custom-query-predicate-in.html
// You need to create a create custom query predicate.
I hope this would help you.
~kautuk
表示
返信
いいね!の合計