UCM service for searching in all revisions

830 views Asked by At

I would like to search for a text in an attribute of UCM content using RIDC. If I use GET_SEARCH_RESULTS service, I will be getting only the latest revision the of result document. But I want to get all the revisions, which will fall in to the given search criteria. is there any way for the same?

2

There are 2 answers

0
abhishek kalikota On BEST ANSWER

Sample code is here..

        String whereClause = "UPPER(XCOMMENTS) LIKE '%VALUE%'";
        dataBinder.putLocal("IdcService", "GET_DATARESULTSET");
        dataBinder.putLocal("dataSource", "Documents");
        dataBinder.putLocal("whereClause", whereClause);
        dataBinder.putLocal("resultName", "YourResult");
        ServiceResponse response =
            idcClient.sendRequest(userContext, dataBinder);
        System.out.println(response.toString());
        DataBinder serverBinder = response.getResponseAsBinder();
        DataResultSet resultSet = serverBinder.getResultSet("YourResult");
1
Jonathan Hult On

Do you want to search for against full-text or metadata?

If metadata, you should be able to use service GET_DATARESULTSET and dataSource RevisionIDs.

If full-text, you might need to roll your own.