Search response with linked metadata

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.
Post Reply
dlg
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: Tue May 19, 2020 7:38 am

Search response with linked metadata

Post 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 ?
jllort
Moderator
Moderator
Posts: 11479
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Search response with linked metadata

Post 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.
Post Reply