Hi Team,
I am trying to make some changes to the Result set of a multi repository search template in ICN 3.0.5 ifix 007. The jsonResultSetResponse is working in case of the Single repository search template ("/p8/search").
For a multi repository search, I am using "/unifiedSearch" as the service in the getFilteredServices() method.
We are fetching the jsonResponse and casting it as:
JSONResultSetResponse jsonResultSetResponse = (JSONResultSetResponse) jsonResponse;
However, I am facing Runtime error : com.ibm.ecm.mediator.UnifiedSearchResultsMediator.writeJSONResponse() java.lang.ClassCastException: com.ibm.ecm.json.JSONResponse cannot be cast to com.ibm.ecm.json.JSONResultSetResponse .
I have also tried to type cast it to the below subclasses:
JSONClassDefinitionResponse , JSONContentClassesResponse , JSONItemAttributesResponse, JSONViewoneBootstrapResponse and JSONResultSetResponse .
Same error everytime. Can you also suggest what type of jsonResponse is returning from a Unified Search/multi repository search?
Thanks in advance.
#IBMContentNavigator(ICN)#Support#SupportMigration