升级自定义搜索Forms upgrading-custom-search-forms

在AEM 6.2中,Customized Search Forms在存储库中的存储位置已更改。 升级后,这些用户档案会从6.1中的以下位置移动:

  • /apps/cq/gui/content/facets

到位于以下位置的新位置:

  • /conf/global/settings/cq/search/facets

因此,升级后需要手动调整表单才能继续正常运行。

这适用于新的搜索Forms和已自定义的默认Forms。

有关详细信息,请参阅以下文档: 搜索Facet.

更改resourceType属性 changing-the-resourcetype-property

除非另有说明,否则在升级后需要执行的大多数调整都需要更改 sling:resourceType 属性来查找已配置的自定义搜索Forms。 该操作是必需的,这样属性才能指向渲染脚本的正确位置。

您可以通过执行以下操作来更改属性:

  1. 打开CRXDE Lite,方法是转到 https://server:port/crx/de/index.jsp
  2. 浏览到需要调整的节点的位置,如的列表中所指定 自定义搜索Forms 下。
  3. 单击节点。 在右侧属性窗格中,单击并修改 sling:resourceType 属性。
  4. 最后,通过按 全部保存 按钮。

自定义搜索Forms列表 list-of-custom-search-forms

在下方,您将找到所有自定义Search Forms的列表以及升级后它们所需的修改。 它们引用了中的名称 /conf/global/settings/cq/search/facets/sites/items.

节点名称为“全文”的全文谓词 fulltext-predicate-with-node-name-fulltext

6.1中默认搜索表单中的节点
全文
6.1中的资源类型
cq/gui/components/common/admin/customsearch/searchpredicates/fulltextpredicate
6.2中的资源类型
不适用

在AEM 6.1中,标准全文谓词是搜索表单的一部分。 在6.2中,全文字段已由OmniSearch取代。 此谓词以编程方式跳过,可以删除。

操作: 完全删除该节点。

其他全文谓词 other-fulltext-predicates

在6.1中的默认搜索源中的节点
不适用
6.1中的资源类型
cq/gui/components/common/admin/customsearch/searchpredicates/fulltextpredicate
6.2中的资源类型
cq/gui/components /coral/ common/admin/customsearch/searchpredicates/fulltextpredicate

操作: 调整 resourceType 属性(添加"/coral”如上面所示的6.2位置)。

路径浏览器谓词 path-browser-predicates

6.1中默认搜索表单中的节点
路径
6.1中的资源类型
cq/gui/components/common/admin/customsearch/searchpredicates/pathpredicate
6.2中的资源类型
cq/gui/components /coral/ common/admin/customsearch/searchpredicates/pathpredicate

操作: 调整 resourceType 属性(添加"/coral”如上面所示的6.2位置)。

标记谓词 tags-predicates

6.1中默认搜索表单中的节点
标记
6.1中的资源类型
cq/gui/components/common/admin/customsearch/searchpredicates/tagspredicate
6.2中的资源类型
cq/gui/components /coral/ common/admin/customsearch/searchpredicates/tagspredicate

操作: 调整 resourceType 属性(添加"/coral”如上面所示的6.2位置)。

页面状态谓词 page-status-predicate

6.1中默认搜索表单中的节点
pagestatuspredicate
6.1中的资源类型
cq/gui/components/siteadmin/admin/searchpanel/searchpredicates/pagestatuspredicate
6.2中的资源类型
不适用

“页面状态”已被替换为两个“选项”属性谓词,一个用于publish,另一个用于LiveCopy状态。

操作:

  • 删除 pagestatuspredicate 节点

  • 复制节点

    • /libs/settings/cq/search/facets/sites/jcr:content/items/publishstatuspredicate
    • /conf/global/settings/cq/search/facets/sites/jcr:content/items
  • 复制节点

    • /libs/settings/cq/search/facets/sites/jcr:content/items/livecopystatuspredicate
    • /conf/global/settings/cq/search/facets/sites/jcr:content/items
  • 确保您已设置 listOrder 的属性 analyticspredicate 节点到"8“。 这是避免冲突所必需的。

日期范围谓词 date-range-predicates

6.1中默认搜索表单中的节点
日期范围谓词
6.1中的资源类型
cq/gui/components/common/admin/customsearch/searchpredicates/daterangepredicate
6.2中的资源类型
cq/gui/components /coral/ common/admin/customsearch/searchpredicates/daterangepredicate

操作: 调整 resourceType 属性(添加"/coral”如上面所示的6.2位置)。

隐藏的筛选器 hidden-filter

6.1中默认搜索表单中的节点
类型
6.1中的资源类型
granite/ui/components/foundation/form/hidden
6.2中的资源类型
granite/ui/components/foundation/form/hidden

操作: 没有可调整的内容。

分析谓词 analytics-predicate

6.1中默认搜索表单中的节点
analyticspredicate
6.1中的资源类型
cq/gui/components/siteadmin/admin/searchpanel/searchpredicates/analyticsspredicate
6.2中的资源类型
cq/gui/components /coral/ siteadmin/admin/searchpanel/searchpredicates/analyticspredicate

操作: 调整 resourceType 属性(添加"/coral”如上面所示的6.2位置)。

范围谓词 range-predicate

6.1中默认搜索表单中的节点
不适用
6.1中的资源类型
cq/gui/components/siteadmin/admin/searchpanel/searchpredicates/rangepredicate
6.2中的资源类型
cq/gui/components /coral/ siteadmin/admin/searchpanel/searchpredicates/rangepredicate

操作: 调整 resourceType 属性(添加"/coral”如上面所示的6.2位置)。

NOTE
注意:与6.1相反,范围谓词不再在搜索栏中呈现标记。

选项属性谓词 options-property-predicate

6.1中默认搜索表单中的节点
不适用
6.1中的资源类型
cq/gui/components/siteadmin/admin/searchpanel/searchpredicates/optionspredicate
6.2中的资源类型
cq/gui/components /coral/ siteadmin/admin/searchpanel/searchpredicates/optionspredicate

操作: 调整 resourceType 属性(添加"/coral”如上面所示的6.2位置)。

滑块范围谓词 slider-range-predicate

6.1中默认搜索表单中的节点
不适用
6.1中的资源类型
cq/gui/components/siteadmin/admin/searchpanel/searchpredicates/sliderrangepredicate
6.2中的资源类型
cq/gui/components /coral/ siteadmin/admin/searchpanel/searchpredicates/sliderrangepredicate

操作: 调整 resourceType 属性(添加"/coral”如上面所示的6.2位置)。

组件谓词 components-predicate

6.1中默认搜索表单中的节点
不适用
6.1中的资源类型
cq/gui/components/siteadmin/admin/searchpanel/searchpredicates/componentspredicate
6.2中的资源类型
cq/gui/components /coral/ siteadmin/admin/searchpanel/searchpredicates/componentspredicate

操作: 调整 resourceType 属性(添加"/coral”如上面所示的6.2位置)。

作者谓词 author-predicate

6.1中默认搜索表单中的节点
不适用
6.1中的资源类型
cq/gui/components/siteadmin/admin/searchpanel/searchpredicates/userpredicate
6.2中的资源类型
cq/gui/components /coral/ siteadmin/admin/searchpanel/searchpredicates/userpredicate

操作: 调整 resourceType 属性(添加"/coral”如上面所示的6.2位置)。

模板谓词 templates-predicate

6.1中默认搜索表单中的节点
不适用
6.1中的资源类型
cq/gui/components/siteadmin/admin/searchpanel/searchpredicates/templatespredicate
6.2中的资源类型
cq/gui/components /coral/ siteadmin/admin/searchpanel/searchpredicates/templatespredicate

操作: 调整 resourceType 属性(添加"/coral”如上面所示的6.2位置)。

资产管理员搜索边栏 assets-admin-search-rail

以下节点是指中的名称 /conf/global/settings/dam/search/facets/assets/items

节点名称为“全文”的全文谓词 fulltext-predicate-with-node-name-fulltext-1

6.1中默认搜索表单中的节点
全文
6.1中的资源类型
dam/gui/components/admin/customsearch/searchpredicates/fulltextpredicate
6.2中的资源类型
不适用

在6.1中,标准全文谓词是搜索表单的一部分。 在6.2中,全文字段已由OmniSearch取代。 此谓词以编程方式跳过,可以删除。

操作: 删除上述节点。

路径浏览器谓词 path-browser-predicates-1

6.1中默认搜索表单中的节点
路径浏览器
6.1中的资源类型
dam/gui/components/admin/customsearch/searchpredicates/pathbrowserpredicate
6.2中的资源类型
dam/gui/coral/components/admin/customsearch/searchpredicates/pathbrowserpredicate

操作: 调整 resourceType 属性(添加"/coral”如上面所示的6.2位置)。

Mime类型谓词 mime-type-predicates

6.1中默认搜索表单中的节点
mimetype
6.1中的资源类型
dam/gui/components/admin/customsearch/searchpredicates/optionspredicate
6.2中的资源类型
dam/gui/coral/components/admin/customsearch/searchpredicates/optionspredicate

操作: 调整 resourceType 属性(添加"/coral”如上面所示的6.2位置)。

文件大小谓词 file-size-predicates

6.1中默认搜索表单中的节点
filesize
6.1中的资源类型
dam/gui/components/admin/customsearch/searchpredicates/filesizepredicate
6.2中的资源类型
dam/gui/coral/components/admin/customsearch/searchpredicates/sliderangepredicate

操作: Adjust resourceType 如上面的6.2位置所示。

资产上次修改的谓词 asset-last-modified-predicates

6.1中默认搜索表单中的节点
assetlastmodifiedpredicate
6.1中的资源类型
dam/gui/components/admin/customsearch/searchpredicates/assetlastmodifiedpredicate
6.2中的资源类型
dam/gui/coral/components/admin/customsearch/searchpredicates/assetlastmodifiedpredicate

操作:调整resourceType属性(像上面所示的6.2位置中那样添加“/coral”)。

发布谓词 publish-predicate

6.1中默认搜索表单中的节点
发布
6.1中的资源类型
dam/gui/components/admin/customsearch/searchpredicates/publishpredicate
6.2中的资源类型
dam/gui/coral/components/admin/customsearch/searchpredicates/publishpredicate

操作:

  • 调整 resourceType 属性(添加"/coral”如上面所示的6.2位置中的)

  • 添加 optionPaths (类型为String)属性,其值为: /libs/dam/options/predicates/publish

  • 添加 singleSelect 具有布尔值的属性 true.

状态谓词 status-predicates

6.1中默认搜索表单中的节点
状态
6.1中的资源类型
dam/gui/components/admin/customsearch/searchpredicates/optionspredicate
6.2中的资源类型
dam/gui/coral/components/admin/customsearch/searchpredicates/optionspredicate

操作: 调整 resourceType 属性(添加"/coral”如上面所示的6.2位置中的)

到期状态谓词 expiry-status-predicates

6.1中默认搜索表单中的节点
过期状态
6.1中的资源类型
dam/gui/components/admin/customsearch/searchpredicates/expiredassetpredicate
6.2中的资源类型
dam/gui/coral/components/admin/customsearch/searchpredicates/expiredassetpredicate

操作: 调整 resourceType 属性(添加"/coral”如上面所示的6.2位置中的)

元数据有效性谓词 metadata-validity-predicates

6.1中默认搜索表单中的节点
元数据有效性
6.1中的资源类型
dam/gui/components/admin/customsearch/searchpredicates/optionspredicate
6.2中的资源类型
dam/gui/coral/components/admin/customsearch/searchpredicates/optionspredicate

操作: 调整 resourceType 属性(添加"/coral”如上面所示的6.2位置中的)

评级谓词 rating-predicates

6.1中默认搜索表单中的节点
评级
6.1中的资源类型
dam/gui/components/admin/customsearch/searchpredicates/ratingpredicate
6.2中的资源类型
dam/gui/coral/components/admin/customsearch/searchpredicates/sliderangepredicate

操作: 调整 resourceType 属性(添加"/coral”如上面所示的6.2位置中的)

方向谓词 orientation-predicate

6.1中默认搜索表单中的节点
方向
6.1中的资源类型
dam/gui/components/admin/customsearch/searchpredicates/tagsfilterpredicate
6.2中的资源类型
cq/gui/components/coral/common/admin/customsearch/searchpredicates/tagspredicate

操作:

  • 调整 resourceType 属性(添加"/coral”如上面所示的6.2位置中的)

  • 添加 fieldLabel 与的值相同的属性 text 属性。

  • 添加 emptyText 属性的值与 text 属性。

  • 添加 rootPath 属性与的值相同 optionPaths 属性。

样式谓词 style-predicate

6.1中默认搜索表单中的节点
样式
6.1中的资源类型
dam/gui/components/admin/customsearch/searchpredicates/tagsfilterpredicate
6.2中的资源类型
cq/gui/components/coral/common/admin/customsearch/searchpredicates/tagspredicate

操作:

  • 调整 resourceType 属性(添加"/coral”如上面所示的6.2位置中的)

  • 添加 fieldLabel 与的值相同的属性 text 属性。

  • 添加 emptyText 属性的值与 text 属性。

  • 添加 rootPath 属性与的值相同 optionPaths 属性。

视频格式谓词 video-format-predicates

6.1中默认搜索表单中的节点
videoFormat
6.1中的资源类型
dam/gui/components/admin/customsearch/searchpredicates/optionspredicate
6.2中的资源类型
dam/gui/coral/components/admin/customsearch/searchpredicates/optionspredicate

操作: 调整 resourceType 属性(添加"/coral”如上面所示的6.2位置中的)

Mainasset谓词 mainasset-predicate

6.1中默认搜索表单中的节点
mainasset
6.1中的资源类型
granite/ui/components/foundation/form/hidden
6.2中的资源类型
granite/ui/components/coral/foundation/form/hidden

操作: 调整 resourceType 属性(添加"/coral”如上面所示的6.2位置中的)

recommendation-more-help
19ffd973-7af2-44d0-84b5-d547b0dffee2