Hi Thomas,

thomasg wrote:
I tried something similar before and it seems to be invalid xpath, gives
following exception

javax.jcr.query.InvalidQueryException: Lexical error at line 1, column 60. Encountered: "c" (99), after : ":": Lexical error at line 1, column 60. Encountered: "c" (99), after : ":": Lexical error at line 1, column 60. Encountered: "c" (99), after : ":"

XPath is case sensitive and the OR operator must be lowercase. That is your query should be:

//*[jcr:contains(@axxia:title, 'history') or
jcr:contains(@axxia:subject, 'history') or jcr:contains(@axxia:keywords,
'history')]

regards
 marcel

Reply via email to