jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@day.com>
Subject Re: XPATH search not finding the item
Date Wed, 07 Oct 2009 22:19:19 GMT
On Wed, Oct 7, 2009 at 23:53, pkrishna <prabhakar.krishnaswami@ge.com> wrote:
> //ecr:variant[@ecr:documentState!='deleted' and
> @ecr:language='00000000-0000-0000-0000-000000000001' and @ecr:author='Jack'
> and @ecr:title='59fdbb5d-5a7c-4b4e-9abc-4511b2c0180e' and
> @ecr:contentType='GENERIC' and @ecr:contentLocation='Internal' and
> @jcr:mimeType='text/plain' and @ecr:keywords='cat' and @ecr:keywords='dog'
> and @jcr:lastModified='2009-10-07T15:38:16.902-06:00']

Date properties such as jcr:lastModified must be searched using a
special function:

jcr:lastModified=xs:dateTime('2009-10-07T15:38:16.902-06:00')

The string passed to that function must be the exact and full ISO-8601
representation (what property.getString() gives you and which is
already correct in your query).

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Mime
View raw message