Hi, in my project we have components with rich text including href links, I am trying to do a search to find links going to a certain locale but it appears as though the slash character causes
/jcr:root//*[jcr:contains(., 'en/register')] order by @jcr:score
This turns up results containing register but not the full string.
I am trying to make sense of the documentation https://jackrabbit.apache.org/archive/wiki/JCR/EncodingAndEscaping_115513396.html
"Furthermore, in XPath queries there is the full text search using "jcr:contains()" and this has its own query string format itself, which in Jackrabbit will be that of Lucene."
"Lucene supports escaping special characters that are part of the query syntax. The current list special characters are
+ - && || ! ( ) { } [ ] ^ " ~ * ? : \ /
To escape these character use the \ before the character. For example to search for (1+1):2 use the query:
\(1\+1\)\:2"
However, if I do
/jcr:root//*[jcr:contains(., 'en\/register')] order by @jcr:score
It doesn't help, still turning up results that do not contain en/register. Why?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
I tried same, I can see only one results.
Can you share sample query from we-retail site so I can try.
Views
Replies
Total Likes
Hi,
I tried same, I can see only one results.
Can you share sample query from we-retail site so I can try.
Views
Replies
Total Likes
Views
Replies
Total Likes
That is, I discovered it worked in a sandbox when trying to give this example to you. I guess nothing the forum can help with then
Views
Replies
Total Likes
Views
Likes
Replies