jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Brosius" <dbros...@mebigfatguy.com>
Subject Re: Search for creation dates - help
Date Fri, 21 Mar 2008 06:36:30 GMT
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" <dbrosius@mebigfatguy.com>
To: <users@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? 


Mime
View raw message