【问题标题】:UCM service for searching in all revisions用于搜索所有修订的 UCM 服务
【发布时间】:2014-12-19 21:03:09
【问题描述】:

我想使用 RIDC 在 UCM 内容的属性中搜索文本。如果我使用 GET_SEARCH_RESULTS 服务,我将只获得结果文档的最新版本。但我想获得所有的修订,这将属于给定的搜索条件。有什么办法吗?

【问题讨论】:

    标签: content-management-system webcenter oracle-ucm


    【解决方案1】:

    示例代码在这里..

            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");
    

    【讨论】:

      【解决方案2】:

      您要搜索全文还是元数据?

      如果是元数据,您应该可以使用服务GET_DATARESULTSET 和数据源RevisionIDs

      如果是全文,您可能需要自己滚动。

      【讨论】:

      • 谢谢乔纳森。我只想搜索元数据。我使用了建议的服务,但将数据源用作文档。它可以搜索元数据。
      猜你喜欢
      • 2020-03-15
      • 1970-01-01
      • 2011-12-28
      • 1970-01-01
      • 2010-11-10
      • 2011-09-20
      • 2020-05-12
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多