在AEM 6.2中,自訂搜尋Forms儲存於存放庫的位置已變更。 升級後,它們會從6.1的位置移至:
到以下的新位置:
因此,升級後需要手動調整,表單才能繼續運作。
這會套用至新的搜尋Forms,以及已自訂的預設Forms。
如需詳細資訊,請參閱搜尋Facet上的檔案。
除非另有說明,否則升級後需要進行的大部分調整都需要變更已設定自訂搜尋Forms的sling:resourceType
屬性。 這是必需的,以便屬性指向呈現指令碼的正確位置。
您可以執行下列動作來變更屬性:
https://server:port/crx/de/index.jsp
開啟CRXDE Lite以下是所有自訂搜尋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 中預設搜尋表單中的節點 |
路徑 |
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/tagspredicates |
6.2中的資源類型 | cq/gui/components/coral/common/admin/customsearch/searchpredicates/tagspredicates |
動作: 調整 resourceTypeproperty(新增「/coral」,如同上述6.2位置)。
6.1 中預設搜尋表單中的節點 |
pagestatuspredipate |
6.1中的資源類型 |
cq/gui/components/siteadmin/searchpanel/searchpredicates/pagestatuspredicate |
6.2中的資源類型 | N/A |
「頁面狀態」已由兩個「選項」屬性述詞取代,一個用於發佈,另一個用於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
請務必將analyticspredicate
節點的listOrder
屬性設定為"8"。 這是避免衝突所必需的。
6.1 中預設搜尋表單中的節點 |
daterangepredicate |
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 中預設搜尋表單中的節點 |
分析 |
6.1中的資源類型 |
cq/gui/components/siteadmin/admin/searchpanel/searchpredicates/analyticspredicate |
6.2中的資源類型 | cq/gui/components/coral/siteadmin/admin/searchpanel/searchpredicates/analyticspredicates |
動作: 調整 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/optionspredicates |
動作: 調整 resourceType
屬性(新增「/coral」,如同上述6.2位置)。
6.1 中預設搜尋表單中的節點 |
N/A |
6.1中的資源類型 |
cq/gui/components/siteadmin/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/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/searchpanel/searchpredicates/templatespredicate |
6.2中的資源類型 | cq/gui/components/coral/siteadmin/admin/searchpanel/searchpredicates/templatespredicates |
動作: 調整 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中預設搜尋表單中的節點 | pathbrowser |
---|---|
6.1中的資源類型 | dam/gui/components/admin/customsearch/searchpredicates/pathbrowserpredicate |
6.2中的資源類型 | dam/gui/coral/components/admin/customsearch/searchdedicates/pathbrowserpredicate |
動作: 調整 resourceType
屬性(新增「/coral」,如同上述6.2位置)。
6.1中預設搜尋表單中的節點 | mimetype |
---|---|
6.1中的資源類型 | dam/gui/components/admin/customsearch/search述詞/optionspdicate |
6.2中的資源類型 | dam/gui/coral/components/admin/customsearch/search述詞/optionspredicates |
動作: 調整 resourceType
屬性(新增「/coral」,如同上述6.2位置)。
6.1中預設搜尋表單中的節點 | 檔案大小 |
---|---|
6.1中的資源類型 | dam/gui/components/admin/customsearch/search述詞/filesizepredicate |
6.2中的資源類型 | dam/gui/coral/components/admin/customsearch/searchpredicates/sliderangepredicate |
動作: 如 resourceType
上方6.2位置所示調整。
6.1中預設搜尋表單中的節點 | assetlastmodifedpredicate |
---|---|
6.1中的資源類型 | dam/gui/components/admin/customsearch/searchdredicates/assetlastmodifedpredicate |
6.2中的資源類型 | dam/gui/coral/components/admin/customsearch/searchdredicates/assetlastmodifedpredicate |
動作:調整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
(類型為字串)屬性:/libs/dam/options/predicates/publish
使用布林值true
添加singleSelect
屬性。
6.1中預設搜尋表單中的節點 | 狀態 |
---|---|
6.1中的資源類型 | dam/gui/components/admin/customsearch/search述詞/optionspdicate |
6.2中的資源類型 | dam/gui/coral/components/admin/customsearch/search述詞/optionspredicates |
動作: 調整 resourceType
屬性(新增「/coral」,如同上述6.2位置)
6.1中預設搜尋表單中的節點 | 有效狀態 |
---|---|
6.1中的資源類型 | dam/gui/components/admin/customsearch/searchpredicates/expiredassetpredicate |
6.2中的資源類型 | dam/gui/coral/components/admin/customsearch/searchdredicates/expiredassetpredicate |
動作: 調整 resourceType
屬性(新增「/coral」,如同上述6.2位置)
6.1中預設搜尋表單中的節點 | 中繼資料有效性 |
---|---|
6.1中的資源類型 | dam/gui/components/admin/customsearch/search述詞/optionspdicate |
6.2中的資源類型 | dam/gui/coral/components/admin/customsearch/search述詞/optionspredicates |
動作: 調整 resourceType
屬性(新增「/coral」,如同上述6.2位置)
6.1中預設搜尋表單中的節點 | 評等 |
---|---|
6.1中的資源類型 | dam/gui/components/admin/customsearch/search述詞/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/tagfilterpredicate |
6.2中的資源類型 | cq/gui/components/coral/common/admin/customsearch/searchpredicates/tagspredicates |
動作:
調整resourceType
屬性(新增"/coral",如上所示6.2位置)
在相同節點上,新增與text
屬性值相同的fieldLabel
屬性。
在相同節點上新增與text
屬性值相同的emptyText
屬性。
在相同節點上,新增與optionPaths
屬性值相同的rootPath
屬性。
6.1中預設搜尋表單中的節點 | 樣式 |
---|---|
6.1中的資源類型 | dam/gui/components/admin/customsearch/searchpredicates/tagfilterpredicate |
6.2中的資源類型 | cq/gui/components/coral/common/admin/customsearch/searchpredicates/tagspredicates |
動作:
調整resourceType
屬性(新增"/coral",如上所示6.2位置)
在相同節點上,新增與text
屬性值相同的fieldLabel
屬性。
在相同節點上新增與text
屬性值相同的emptyText
屬性。
在相同節點上,新增與optionPaths
屬性值相同的rootPath
屬性。
6.1中預設搜尋表單中的節點 | videoFormat |
---|---|
6.1中的資源類型 | dam/gui/components/admin/customsearch/search述詞/optionspdicate |
6.2中的資源類型 | dam/gui/coral/components/admin/customsearch/search述詞/optionspredicates |
動作: 調整 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位置)