basic advanced search using sdkphp

Do you want to create a native client or integrate with third party applications: webservices are the solution.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
rashedmohajer
Junior Boarder
Junior Boarder
Posts: 22
Joined: Sat Jul 25, 2015 8:03 am
Location: sudan

basic advanced search using sdkphp

Post by rashedmohajer » Tue Sep 08, 2015 3:13 pm

hi
i try to search document ( data range between tow date in specific folder)
using sdkphp

sochoa
Junior Boarder
Junior Boarder
Posts: 31
Joined: Thu May 02, 2013 3:26 am

Re: basic advanced search using sdkphp

Post by sochoa » Thu Sep 10, 2015 4:06 pm

Hello

Which OpenKM version are you using ?

rashedmohajer
Junior Boarder
Junior Boarder
Posts: 22
Joined: Sat Jul 25, 2015 8:03 am
Location: sudan

Re: basic advanced search using sdkphp

Post by rashedmohajer » Sat Sep 12, 2015 10:09 am

hi
version 6.3.0 build 8156 communtiy

this is not work

Code: Select all

//find
$keywords = array();
$keywords[] = 'اتفاقيات';
$queryParams = new QueryParams();
$queryParams->setDomain(QueryParams::DOCUMENT + QueryParams::FOLDER);
$queryParams->setKeywords($keywords);
$queryParams->setName('علي  يوسف.docx');
//$queryParams->setAuthor('okmAdmin');
$queryParams->setFolder("/okm:root/ملفات");
$queryParams->setLastModifiedFrom('2015-11-5');
$queryParams->setLastModifiedTo('2015-12-5');
// $queryParams->setPath("/okm:root/a/");
$queryResults = $this->ws->find($queryParams);

foreach ($queryResults as $queryResult) {
      $this->printQueryResult($queryResult, 'find');
}
i whant to search with arabic name of document

jllort
Moderator
Moderator
Posts: 9637
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: basic advanced search using sdkphp

Post by jllort » Sun Sep 13, 2015 9:26 am

My suggestion is try from simple query ( less filtering fields ) to more complete and then see from which parameter the query does not return the expected results. Then will be able to help you better.

rashedmohajer
Junior Boarder
Junior Boarder
Posts: 22
Joined: Sat Jul 25, 2015 8:03 am
Location: sudan

Re: basic advanced search using sdkphp

Post by rashedmohajer » Thu Sep 17, 2015 2:40 pm

hi,

Code: Select all

$queryParams->setLastModifiedFrom('2015-11-5 00:00:00');
$queryParams->setLastModifiedTo('2015-12-5 00:00:00');
does not work for me.

sochoa
Junior Boarder
Junior Boarder
Posts: 31
Joined: Thu May 02, 2013 3:26 am

Re: basic advanced search using sdkphp

Post by sochoa » Fri Sep 18, 2015 12:19 pm

Hi,

The pattern for the date is 'yyyyMMddHHmmss'. Example:

Code: Select all

$queryParams->setLastModifiedFrom('2015115000000');
$queryParams->setLastModifiedTo('2015125000000');

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests