XPath queries full text search term with slash not working
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 @6655266: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 @6655266:score
It doesn't help, still turning up results that do not contain en/register. Why?
