Page 1 of 1

Can we use Xpath in WS 6.2

PostPosted:Mon Oct 07, 2013 2:20 pm
by michaeled
Hi all !

For a php client with OpenKM 5.10, i was performing a search with that code :
Code: Select all
$user = 'm.edlich';
$statement = "/jcr:root/okm:root//element(*, okm:document)[(@okm:authUsersRead = '".$user."')] order by okm:content/@jcr:lastModified descending";
$queryResultArrayResult = $OKMSearch->findByStatement($token, $statement, "xpath");
$queryResultArray = $queryResultArrayResult->item;
This code doesn't work anymore with OpenKM 6.2,

So is it possible to continue to use xpath in soap request ?

Michael.

Re: Can we use Xpath in WS 6.2

PostPosted:Wed Oct 09, 2013 9:40 am
by jllort
I think no. From vertion 5.x to 6.x we make a major upgrade which was remove jackrabbit repository and work with our own ( new database, etc... ). I think xpath now is deprecated, I'm no totally sure I will ask to one of my colleagues.

Re: Can we use Xpath in WS 6.2

PostPosted:Wed Apr 23, 2014 9:29 am
by michaeled
Hi Jllort,

Do you have news about the use of Xpath Query (wiki :http://wiki.openkm.com/index.php/XPath_queries) in OpenKM 6.2 ?


I was havin a script in Okm5 who show the 5 last documents added,
with something like this : /jcr:root/okm:root//element(*, okm:document)[(@okm:authUsersRead = 'toto' or @okm:authRolesRead = 'roleTOTO')] order by okm:content/@jcr:lastModified descending

How can I do that with new implementation ?

Thanks,

Michael.

Re: Can we use Xpath in WS 6.2

PostPosted:Wed Apr 23, 2014 3:44 pm
by pavila
In OpenKM 6.2 you can make Hibernate or SQL queries, but not XPath.