• Searching in folders recursively does not work from directories other than /okm:root

  • 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.
 #31539  by fonnerk
 
If I do an call to find() via the OKMSearch web service with the path /okm:root, it does a search recursively across all nested folders in the directory... If I change the path to /okm:root/ then it only searches the immediate directory only... Now if I search any path other than root such as /okm:root/Books it will search for items directly in the path /okm:root/Books but not in nested the directories under/okm:root/Books such as items in the directory /okm:root/Books/Electronics. What am I doing wrong... are their additional parameters I need to pass to do a recursive search from a subdirectory or should I format the path differently to do a recursive search from a nested subdirectory? Below are some sample soap requests to demonstrate.

---------------------------- Works for doing a recursive search across nested directories under /okm:root --------------------------------------
Code: Select all
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.openkm.com">
   <soapenv:Header/>
   <soapenv:Body>
      <ws:find>
         <!--Optional:-->
         <token>7886925e-a1e4-4c96-a829-ed0790079c19</token>
         <!--Optional:-->
         <params>
         	  <path>/okm:root</path>
         	  <domain>3</domain>
            <!--Optional:-->
            <name>sensors</name>
         </params>
      </ws:find>
   </soapenv:Body>
</soapenv:Envelope>
------------------ Does not work for doing a recursive search across nested directories under /okm:root/Books --------------------------------------
Code: Select all
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.openkm.com">
   <soapenv:Header/>
   <soapenv:Body>
      <ws:find>
         <!--Optional:-->
         <token>7886925e-a1e4-4c96-a829-ed0790079c19</token>
         <!--Optional:-->
         <params>
         	  <path>/okm:root/Books</path>
         	  <domain>3</domain>
            <!--Optional:-->
            <name>sensors</name>
         </params>
      </ws:find>
   </soapenv:Body>
</soapenv:Envelope>
 #31673  by fonnerk
 
ooo... good point. I should have looked there first... If you choose a folder path in the advanced screen then the behavior seems to only search that folder. That surprised me. I was expecting for it to search recursively beneath that folder. In windows if you search a path, it searches everything beneath that path. Is this type of functionality not available with openkm, is my system not working correctly, or am I doing it incorrectly? Seems surprising to me if you can't search for something beneath a folder (including it's sub folders).

Thanks!
Kevin
 #37181  by jllort
 
We've introduced this improvement later, it's quite complex to explain. Basically the problem was on hierarchy computing cost by search engine, I will not extend you on technical questions ( when we had done the major change from version 5.x to 6.2 this feature was disabled ). On latest versions we've yet reintroduced. If you do no have a checkbox at the right then this feature is still not present on this version. You can compare with demo.openkm.com where is yet present.

The changes between 5.x to 6.x is one of the most radical we've done.
 #39547  by jllort
 
When pavila talks about nighly build is because you're able to download and install what will be next release http://integration.openkm.com and consider it as 6.3.1 http://wiki.openkm.com/index.php/Migrat ... 3_to_6.3.1 ( here we're applying only patches )
 #39833  by jllort
 
My colleague pavila suggest you to upgrade to latest source code where the problem is solved. The migration guide you must follow from 6.3.0 to integration.openkm.com war file is http://wiki.openkm.com/index.php/Migrat ... 3_to_6.3.1

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.