在AEM6.2中,自定義搜索Forms儲存在儲存庫中的位置已更改。 在升級後,它們會從6.1的位置移至:
到以下位置的新位置:
因此,在升級後需要手動調整,才能讓表單繼續運作。
這適用於新的搜尋Forms以及已自訂的預設Forms。
如需詳細資訊,請參閱搜尋Facets上的檔案。
除非另有說明,在升級後需要進行的大部分調整都需要變更所設定自訂搜尋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/fulltextpredicates |
6.2中的資源類型 | N/A |
在AEM6.1中,標準fulltext謂語是搜尋表單的一部分。 在6.2中,全文欄位已由OmniSearch取代。 此謂語以程式設計方式跳過,可加以移除。
操作: 完全刪除節點。
6.1中預設「搜尋自」中的節點 | N/A |
6.1中的資源類型 |
cq/gui/components/common/admin/customsearch/searchpredicates/fulltextpredicates |
6.2中的資源類型 | cq/gui/components/coral/common/admin/customsearch/searchpredicates/fulltextpredicates |
動作: 調整 resourceType
屬性(新增「/coral」,如上述6.2位置)。
6.1 中預設搜尋表單中的節點 |
路徑 |
6.1中的資源類型 |
cq/gui/components/common/admin/customsearch/searchpredicates/pathpredicates |
6.2中的資源類型 | cq/gui/components/coral/common/admin/customsearch/searchpredicates/pathpredicates |
動作: 調整 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 |
動作: 調整 resourceTypeproperty(新增「/coral」,如上述6.2位置)。
6.1 中預設搜尋表單中的節點 |
pagestatuspredicate |
6.1中的資源類型 |
cq/gui/components/siteadmin/admin/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/daterangede |
動作: 調整 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/analyticspredicates |
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/rangpredicate |
動作: 調整 resourceType
屬性(新增「/coral」,如上述6.2位置)。
注意:與6.1相反,「範圍謂語」不再在搜尋列中演算標籤。
6.1 中預設搜尋表單中的節點 |
N/A |
6.1中的資源類型 |
cq/gui/components/siteadmin/admin/searchpanel/searchpredicates/optionspredicates |
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/admin/searchpanel/searchpredicates/sliderrangpredicate |
6.2中的資源類型 | cq/gui/components/coral/siteadmin/admin/searchpanel/searchpredicates/sliderrangpredicate |
動作: 調整 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/componentsspredicate |
動作: 調整 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/userpredicates |
動作: 調整 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/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中,標準fulltext謂語是搜尋表單的一部分。 在6.2中,全文欄位已由OmniSearch取代。 此謂語以程式設計方式跳過,可加以移除。
動作: 移除上述節點。
6.1中預設搜尋表單中的節點 | 路徑瀏覽器 |
---|---|
6.1中的資源類型 | dam/gui/components/admin/customsearch/searchpredicates/pathbrowserpredicate |
6.2中的資源類型 | dam/gui/coral/components/admin/customsearch/searchpredicates/pathbrowserpredicates |
動作: 調整 resourceType
屬性(新增「/coral」,如上述6.2位置)。
6.1中預設搜尋表單中的節點 | mimetype |
---|---|
6.1中的資源類型 | dam/gui/components/admin/customsearch/searchpredicates/optionspredicates |
6.2中的資源類型 | dam/gui/coral/components/admin/customsearch/searchpredicates/optionspredicates |
動作: 調整 resourceType
屬性(新增「/coral」,如上述6.2位置)。
6.1中預設搜尋表單中的節點 | 檔案大小 |
---|---|
6.1中的資源類型 | dam/gui/components/admin/customsearch/searchpredicates/filesizepredicate |
6.2中的資源類型 | dam/gui/coral/components/admin/customsearch/searchpredicates/sliderangepredicates |
動作: 如 resourceType
上述6.2位置所示調整。
6.1中預設搜尋表單中的節點 | assetlastmodifedpredicate |
---|---|
6.1中的資源類型 | dam/gui/components/admin/customsearch/searchpredicates/assetlastmodifedpredicate |
6.2中的資源類型 | dam/gui/coral/components/admin/customsearch/searchpredicates/assetlastmodifedpredicate |
動作:調整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/optionspredicates |
6.2中的資源類型 | dam/gui/coral/components/admin/customsearch/searchpredicates/optionspredicates |
動作: 調整屬 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/optionspredicates |
6.2中的資源類型 | dam/gui/coral/components/admin/customsearch/searchpredicates/optionspredicates |
動作: 調整屬 resourceType
性(新增「/coral」,如上述6.2位置)
6.1中預設搜尋表單中的節點 | 評等 |
---|---|
6.1中的資源類型 | dam/gui/components/admin/customsearch/searchpredicates/ratingpredicate |
6.2中的資源類型 | dam/gui/coral/components/admin/customsearch/searchpredicates/sliderangepredicates |
動作: 調整屬 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/tagspredicate |
動作:
調整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/tagspredicate |
動作:
調整resourceType
屬性(新增"/coral",如上述6.2位置所示)
在同一節點上添加與text
屬性值相同的fieldLabel
屬性。
在同一節點上添加與text
屬性值相同的emptyText
屬性。
在相同節點上添加與optionPaths
屬性值相同的rootPath
屬性。
6.1中預設搜尋表單中的節點 | videoFormat |
---|---|
6.1中的資源類型 | dam/gui/components/admin/customsearch/searchpredicates/optionspredicates |
6.2中的資源類型 | dam/gui/coral/components/admin/customsearch/searchpredicates/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位置)