在AEM 6.2中,存放庫內儲存自訂搜尋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中的資源型別 | N/A |
在AEM 6.1中,標準全文檢索述詞是搜尋表單的一部分。 在6.2中,全文欄位已由OmniSearch取代。 這個述詞會以程式設計方式略過,而且可以移除。
動作: 完全移除節點。
6.1中預設搜尋來源中的節點 | N/A |
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中預設搜尋表單中的節點 |
path |
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中的資源型別 | N/A |
「頁面狀態」已被兩個「選項」屬性述詞取代,一個用於「發佈」,另一個用於「即時副本」狀態。
動作:
移除 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中預設搜尋表單中的節點 |
analyticsspredicate |
6.1中的資源型別 |
cq/gui/components/siteadmin/admin/searchpanel/searchpredicates/analyticsspredicate |
6.2中的資源型別 | cq/gui/components/coral/siteadmin/admin/searchpanel/searchpredicates/analyticsspredicate |
動作: 調整 resourceType
屬性(新增"/coral"如上面指示的6.2位置中)。
6.1中預設搜尋表單中的節點 |
N/A |
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中預設搜尋表單中的節點 |
N/A |
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中預設搜尋表單中的節點 |
N/A |
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中預設搜尋表單中的節點 |
N/A |
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中預設搜尋表單中的節點 |
N/A |
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中預設搜尋表單中的節點 |
N/A |
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中的資源型別 | N/A |
在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 |
動作: 調整 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屬性(新增「/coral」,如上方所示的6.2位置)。
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中預設搜尋表單中的節點 | 主要資產 |
---|---|
6.1中的資源型別 | granite/ui/components/foundation/form/hidden |
6.2中的資源型別 | granite/ui/components/coral/foundation/form/hidden |
動作: 調整 resourceType
屬性(新增"/coral"如上方所示的6.2位置)