Page 1 of 1

Search response with linked metadata

PostPosted:Mon May 25, 2020 1:38 pm
by dlg
Hello there,

I am using the REST API on a PHP based application.
I need to execute a search based on some metadata. This part is working just fine.

However the result I get does not contain any of the metadata(/properties) of the documents; and I do need the linked metadata.
I have tried to pass some values into the 'propertiesPlugin' argument but without success.
I am using the 'rest/search' but I also tried the '/rest/search/metadata' without much more success.

Is there a way to execute a search and get the associated metadata in the response ?

Re: Search response with linked metadata

PostPosted:Sat May 30, 2020 6:29 pm
by jllort
What SDK version are you using. You should use version 1.2 ( compatibility table https://docs.openkm.com/kcenter/view/sdk4php/ ).

The feature to get search results with metadata is currently only implemented in professional edition. Depending the type of query you are doing and security you might try to playin directly with database queries https://docs.openkm.com/kcenter/view/sd ... teSqlQuery It is not trivial making the query but sometimes is better than trying to get the results from lucene. This is a good starting point to understanding database structure https://docs.openkm.com/kcenter/view/ok ... ption.html

If you need to apply security in the search tell us, and we'll try to guide you on how doing it.