Information on xpath query

Hi Team,

Can you please confirm if repository xpath query supports ‘starts-with’ and ‘ens-with’ function? I am trying “//*[starts-with(., ‘test’)]” and it is giving me “javax.jcr.query.InvalidQueryException: Unsupported function: starts-with”?

Thanks
Rahul

Can i get some help here?

jcr contains in combination with *

https://docs.adobe.com/docs/en/spec/jcr/1.0/6.6.5.2_jcr_contains_Function.html

http://mail-archives.apache.org/mod_mbox/jackrabbit-users/201006.mbox/<4C08FDF7.6010700@randdss.com>

It is known to be less performant than the full text search with jcr:contains, but jcr:like is the equivalent operation to that. e.g, [jcr:like(@title, 'test%')].

Thank you so much. It worked.