在AEM 6.2中,Customized Search Forms在存储库中的存储位置已更改。 升级后,它们会从6.1中的位置移至:
到下的新位置:
因此,升级后需要手动调整,表单才能继续运行。
这适用于新的搜索Forms以及已自定义的默认Forms。
有关更多信息,请参阅以下文档: 搜索Facet.
除非另有说明,否则升级后需要完成的大多数调整都需要更改 sling:resourceType
配置的自定义搜索Forms的属性。 该操作是必需的,这样属性才能指向渲染脚本的正确位置。
您可以通过执行以下操作来更改属性:
https://server:port/crx/de/index.jsp
在下方,您将找到所有自定义Search Forms的列表以及升级后它们所需的修改。 它们引用了中的名称 /conf/global/settings/cq/search/facets/sites/items
.
6.1中默认搜索表单中的节点 | 全文 |
6.1中的资源类型 |
cq/gui/components/common/admin/customsearch/searchpredicates/fulltextpredicate |
6.2中的资源类型 | 不适用 |
在AEM 6.1中,标准全文谓词是搜索表单的一部分。 在6.2中,全文字段已由OmniSearch取代。 此谓词以编程方式跳过,可以删除。
操作: 完全删除节点。
在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位置)。
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位置)。
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位置)。
6.1中默认搜索表单中的节点 |
pagestatuspredicate |
6.1中的资源类型 |
cq/gui/components/siteadmin/admin/searchpanel/searchpredicates/pagestatuspredicate |
6.2中的资源类型 | 不适用 |
“页面状态”已被两个选项属性谓词替换,一个用于发布,一个用于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“。 这是避免冲突所必需的。
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位置)。
6.1中默认搜索表单中的节点 |
类型 |
6.1中的资源类型 |
granite/ui/components/foundation/form/hidden |
6.2中的资源类型 | granite/ui/components/foundation/form/hidden |
操作: 没有可调整的内容。
6.1中默认搜索表单中的节点 |
analyticspredicate |
6.1中的资源类型 |
cq/gui/components/siteadmin/admin/searchpanel/searchpredicates/analyticspredicate |
6.2中的资源类型 | cq/gui/components/coral/siteadmin/admin/searchpanel/searchpredicates/analyticspredicate |
操作: 调整 resourceType
属性(添加"/coral”类似于上面所示的6.2位置)。
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位置)。
注意:与6.1相反,范围谓词不再在搜索栏中呈现标记。
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位置)。
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位置)。
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位置)。
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位置)。
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位置)。
以下节点引用了中的名称 /conf/global/settings/dam/search/facets/assets/items
6.1中默认搜索表单中的节点 | 全文 |
---|---|
6.1中的资源类型 | dam/gui/components/admin/customsearch/searchpredicates/fulltextpredicate |
6.2中的资源类型 | 不适用 |
在6.1中,标准全文谓词是搜索表单的一部分。 在6.2中,全文字段已由OmniSearch取代。 此谓词以编程方式跳过,可以删除。
操作: 删除上述节点。
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位置)。
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位置)。
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位置所示。
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”)。
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
.
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位置)
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位置)
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位置)
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位置)
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
属性。
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
属性。
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位置)
6.1中默认搜索表单中的节点 | mainasset |
---|---|
6.1中的资源类型 | granite/ui/components/foundation/form/hidden |
6.2中的资源类型 | granite/ui/components/coral/foundation/form/hidden |
操作: 调整 resourceType
属性(添加"/coral”如上面所示的6.2位置)