• Search response with linked metadata

  • 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.
 #50028  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 ?
 #50046  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.

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.