升級自訂搜尋Forms

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

  • /apps/cq/gui/content/facets

到以下的新位置:

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

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

這會套用至新的搜尋Forms,以及已自訂的預設Forms。

如需詳細資訊,請參閱搜尋Facet上的檔案。

更改resourceType屬性

除非另有說明,否則升級後需要進行的大部分調整都需要變更已設定自訂搜尋Forms的sling:resourceType屬性。 這是必需的,以便屬性指向呈現指令碼的正確位置。

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

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

自訂搜尋Forms清單

以下是所有自訂搜尋Forms的清單,以及升級後所需的修改。 它們指/conf/global/settings/cq/search/facets/sites/items中的名稱。

節點名為"fulltext"的全文謂詞

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

動作: 無需調整。

Analytics 述詞

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中的名稱

節點名為"fulltext"的全文謂詞

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

Mime類型謂詞

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

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

本頁內容