升級自訂搜尋Forms

上次更新: 2023-11-07
  • 主題:
  • Upgrading
    檢視有關此主題的更多資訊
  • 建立對象:
  • Developer

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

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

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

Analytics 述詞

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

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屬性(新增「/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位置)

Mainasset述詞

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

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

此頁面上的