You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Dave Brosius <db...@mebigfatguy.com> on 2008/03/21 00:15:19 UTC

Search for creation dates - help

I am trying to put together a query for when the creation date of a nt:file derived object is greater than some date. I've tried

//*[@jcr:primaryType = 'prm:File' and deref(@jcr:baseVersion, nt:version)/@jcr:lastModified >= xs:dateTime('2000-01-01T00:00:00.000-05:00')] order by jcr:score() descending


This doesn't seem to work at the moment, Am i off base here?


Re: Search for creation dates - help

Posted by Dave Brosius <db...@mebigfatguy.com>.
Sorry, i meant to paste

//*[@jcr:primaryType = 'prm:File' and deref(@jcr:baseVersion, 
nt:version)/jcr:content/@jcr:lastModified >= 
xs:dateTime('2000-01-01T00:00:00.000-05:00')] order by jcr:score() 
descending

no errors, but no results.

Am i confused as to how properties are referenced from Versions? Do i need 
to instead just add a creation date property aside from the nt:file

lastModifiedDate one?
----- Original Message ----- 
From: "Dave Brosius" <db...@mebigfatguy.com>
To: <us...@jackrabbit.apache.org>
Sent: Thursday, March 20, 2008 6:15 PM
Subject: Search for creation dates - help


I am trying to put together a query for when the creation date of a nt:file 
derived object is greater than some date. I've tried

//*[@jcr:primaryType = 'prm:File' and deref(@jcr:baseVersion, 
nt:version)/@jcr:lastModified >= 
xs:dateTime('2000-01-01T00:00:00.000-05:00')] order by jcr:score() 
descending


This doesn't seem to work at the moment, Am i off base here?