jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: Xpath query question
Date Tue, 25 Apr 2006 09:16:16 GMT
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

Mime
View raw message