PropertiesPlugin with Metadata in findByQuery

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
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: Thu Jul 29, 2021 9:14 am

PropertiesPlugin with Metadata in findByQuery

Post by rmdd »


As the standard return from findByQuery contains lots of things and metadata are missing, i see that we can implement and deploy a serverside plugin. ... indByQuery

This plugin need to implements NodeProperties. I have found this example : ... cts-).html

As this example is very basic and the javadoc doesn't match the example, my questions are :

Is it possible to set the metadata in the Document sent by

Code: Select all

    public Document getProperties(String user, NodeDocument nDocument, String linkTarget) throws PathNotFoundException, DatabaseException, RepositoryException {
        Document node = new Document();

node.setXXX(metadatas) ?

        return node;

and how can i set the openkm artifact in the pom.xml ? sdk4j works but doesn't contain the classes needed to create the plugin

Code: Select all

thanks in advance
Posts: 11593
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain

Re: PropertiesPlugin with Metadata in findByQuery

Post by jllort »

This documentation is not applicable to community edition, this feature currently is only implemented in professional edition.

In this kind of scenario it is better implement your own method to get just the data you need ( maybe by database directly without going across the lucene search engine ) -> database query will require less changes in code it is the easiest but may be not the best -> with a more detailed description of the problem are trying to solve I will be able to do better suggestions.
Post Reply