Hi!

Is it possible to perform a full-text search for a string containing an "&"
character?

For example this query:
        //element(*, nt:file)[jcr:contains(., 'Dolce&Gabbana')]

... produces the following error:
        Encountered: "G" (71), after : "\'Dolce&"

... presumably because it expects an XML entity following the "&".
However, if I replace the "&" with an "&", the query works, but finds
only literal "&" strings (e.g. "Dolce&Gabbana"), which is useless.

Is there another way to properly escape the "&" character?


Thanks & regards,
Jaka

Reply via email to