FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Search using Modified/Created Date comparison (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Search using Modified/Created Date comparison
#1789
bragarwal (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Search using Modified/Created Date comparison 1 Year, 2 Months ago Karma: 0  
Hi,
I am developing a search functionality to retrieve all documents from last modified/created date till the current date.
I know this can be achieved using XPath query and passing it in findByStatement() method provided via Search webservice.
I am looking forward if someone can help me out formulating the XPath query to search documents by comparing the Dates in OpenKM.
What are the OpenKM MetaData keys for Document modified date and created date from OpenKM repository.
In which format the date gets retrieved using XPath, so that I can pass the input date in the XPath query for comparison in Java to compare the System date and OpenKM document dates.
Also whether OpenKM version 3 supports XPath 1.0 or 2.0.
How do I know which OpenKM MetaData keys linked with the document properties in the repository.
Please let me know the answers as I am in middle of implementing advanced search features using XPath using Date comparison.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1801
bragarwal (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Search using Modified/Created Date comparison 1 Year, 1 Month ago Karma: 0  
I have formed an XPath query to solve the problem, logically it seems correct but when i try to execute it using OpenKM GUI interface, it fails. Please find the query below:

/jcr:root/okm:root//element(*,okm:document)[@okm:content/jcr:lastModified >= xs:dateTime('2008-07-20T00:00:00.000Z')]

where the arguement in xs:dateTime('' is an ISO8601 formatted date. I just wanted to fetch all the document/folders who whose last modified date is greator than the given modifieDate.

Please Pavila/jllort help me out in solving this problem. Atleast let me know if I am doing it right or not.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1804
pavila (Admin)
Admin
Posts: 564
graphgraph
User Offline Click here to see the profile of this user
Gender: Male OpenKM
Re:Search using Modified/Created Date comparison 1 Year, 1 Month ago Karma: 9  
I'have tested and works pretty well.
 
Report to moderator   Logged Logged  
 
Be open, my friend!
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop