使用 OCE 工具包创建页索引内容项

您可以使用 OCE 工具包命令创建页索引内容项。

先决条件:

  • 已在本地计算机上安装和设置 OCE 工具包。

  • Oracle Content Management 上的站点已发布。

  • 站点页上的内容项已发布到站点通道。

在命令行界面中,键入以下 OCE 工具包命令:

cec index-site site name -c content type name -p

在命令中,site name 是站点的名称,content type name 是为页文本创建的内容类型;选项 -p 指示在创建后发布页索引内容项。

Usage: cec index-site <site>

Create content item for each page with all text on the page. If the page index content item already exists for a page, updated it with latest text on the page. Specify -c
<contenttype> to set the page index content type. Optionally specify -p to publish the page index items after creation or update.

Options:
  --contenttype, -c  <contenttype> page index content type
  --publish, -p      publish page index items
  --help, -h         Show help                                                                                                                                            [boolean]

Examples:
  cec index-site Site1 -c PageIndex
  cec index-site Site1 -c PageIndex -p

要查看用法,可以键入 cec index-site -h