• basic advanced search using sdkphp

  • Do you want to create a native client or integrate with third party applications: webservices are the solution.
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.
 #40513  by rashedmohajer
 
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
 #40521  by jllort
 
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.
 #40558  by sochoa
 
Hi,

The pattern for the date is 'yyyyMMddHHmmss'. Example:
Code: Select all
$queryParams->setLastModifiedFrom('2015115000000');
$queryParams->setLastModifiedTo('2015125000000');

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.