升級自訂搜尋Forms

在AEM 6.2中,自訂搜尋Forms在存放庫中的儲存位置已變更。 升級後,它們會從6.1中的位置移至:

  • /apps/cq/gui/content/facets

至下的新位置:

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

因此,升級後需要手動調整,表單才能繼續運作。

這適用於新的搜尋Forms以及已自訂的預設Forms。

如需詳細資訊,請參閱以下檔案: 搜尋Facet.

變更resourceType屬性

除非另有說明,否則升級後需要完成的大部分調整都需要變更 sling:resourceType 已設定自訂搜尋Forms的屬性。 這需要此屬性才能指向轉譯指令碼的正確位置。

您可以執行下列動作來變更屬性:

  1. 開啟CRXDE Lite,方法是前往 https://server:port/crx/de/index.jsp
  2. 瀏覽至需要調整的節點位置,如下列清單中所指定: 自訂搜尋Forms 下方的。
  3. 按一下節點。 在右側屬性窗格中,按一下並修改 sling:resourceType 屬性。
  4. 最後,按下 全部儲存 按鈕。

自訂搜尋Forms清單

下方提供所有自訂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中預設搜尋表單中的節點

路徑

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

動作: 沒有可調整的內容。

Analytics 述詞

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中預設搜尋表單中的節點

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/templatesspredicate

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位置)。

Mime型別述詞

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屬性(在上面所示的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位置)

Mainasset述詞

6.1中預設搜尋表單中的節點 mainasset
6.1中的資源型別 granite/ui/components/foundation/form/hidden
6.2中的資源型別 granite/ui/components/coral/foundation/form/hidden

動作: 調整 resourceType 屬性(新增"/coral"如上面所示的6.2位置)

本頁內容