Search code examples
ibm-content-navigator

Add search criteria using Content Navigator plugin on click of Search Button in Search Template


In IBM content Navigator, i need to add one additional search criteria to all search template on click of Search button (for example strStatus="In Progress").

And only documents which matches this criteria should be displayed in search Result.

This i want to do using IBM content Navigator plugin and this search criteria should not be visible in any search template.

Can someone help me, how I can archive this?


Solution

  • You probably need to implement a request filter for p8/search service. This should allow you to inject the additional search criteria into the request before it is executed.

    See https://github.com/ibm-ecm/ibm-content-navigator-samples/blob/master/UserColumnSettingsPlugin/src/com/ibm/ecm/extension/ColumnsDisplayedRequestFilter.java for an example.