Page 1 of 1

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

PostPosted:Sun Mar 08, 2015 4:25 am
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>

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

PostPosted:Sun Mar 08, 2015 6:23 pm
by fonnerk
Also forgot to mention... I viewed these result via soap services against OpenKM 6.3.0 on a linux system with a postgresql database

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

PostPosted:Thu Mar 12, 2015 7:54 am
by jllort
When you do the search from openkm view is not going right ? this is the first point.

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

PostPosted:Sat Mar 21, 2015 6:38 pm
by jllort
Did you tryed the search from normal UI, is going right there or not ?

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

PostPosted:Sun Mar 22, 2015 6:58 pm
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

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

PostPosted:Sat Mar 28, 2015 7:14 pm
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.

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

PostPosted:Wed Apr 15, 2015 7:05 am
by teddy_b
Stefano, have you managed to solve it?

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

PostPosted:Mon Apr 20, 2015 4:02 pm
by pavila
In latest OpenKM 6.3.1 it searches in folder and subfolders. If it is not working this way, please use a recent night build.

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

PostPosted:Mon May 11, 2015 4:17 pm
by relixman
As I have the same problem with searching subfolders, I would like to know when the fix will be available in the Community Edition. At the moment only V.6.3.0 can be downloaded. Thanks for fixing it soon.

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

PostPosted:Wed May 13, 2015 4:51 pm
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 )

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

PostPosted:Sat May 30, 2015 9:48 am
by jllort
I think soon, but there's still no oficial date for it. Meanwhile can use without problems nightly build, really version 6.3.1 will be a release of one nightly build. On code actually we're only introducing patches.

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

PostPosted:Tue Jun 02, 2015 5:05 pm
by jllort
For your tranquility, will be few changes before we release actual nightly build, because from one month to present we've been talking several times to release it, but we've not found the 2-3 hours for doing it.

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

PostPosted:Fri Jun 05, 2015 11:25 am
by pavila
You can download the nightbuild from http://integration.openkm.com/6.3/

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

PostPosted:Sat Jun 06, 2015 11:16 am
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

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

PostPosted:Wed Jun 10, 2015 10:33 am
by pavila
Good news.