Page 1 of 1

Search through REST API

PostPosted:Sat Dec 17, 2016 1:31 pm
by openkm_user
Hi,

While searching using REST API, search results with all folders and files (from both Taxonomy and Trash), is there a way to search only from Taxonomy?

Thanks!

Re: Search through REST API

PostPosted:Sun Dec 18, 2016 11:08 am
by jllort
Yes, simply in QueryParams you must set the path variable the value "/okm:root". Should be enought.

Re: Search through REST API

PostPosted:Mon Dec 19, 2016 6:28 pm
by openkm_user
I think when we tried that it resulted in error and we had to increase max.search.clauses. Still not very sure about what it is and how much is ideal.

Thanks for the reply!!

Re: Search through REST API

PostPosted:Tue Dec 20, 2016 9:12 am
by jllort
If you have a complex query which involve a lot of nodes present into the query, then you must increase the max.search.clauses value. Usually you quickly detect this behaviour because will be raised a clear error indicating you are outside the limit set in max.search.clauses.