升級自訂搜尋Forms upgrading-custom-search-forms

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

  • /apps/cq/gui/content/facets

移至下的新位置:

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

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

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

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

變更resourceType屬性 changing-the-resourcetype-property

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

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

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

自訂搜尋Forms清單 list-of-custom-search-forms

在下方,您會找到所有自訂Search Forms的清單,以及升級後所需的修改。 它們是指中的名稱 /conf/global/settings/cq/search/facets/sites/items.

節點名稱為「全文」的全文述詞 fulltext-predicate-with-node-name-fulltext

6.1中預設搜尋表單中的節點
全文
6.1中的資源型別
cq/gui/components/common/admin/customsearch/searchpredicates/fulltextpredicate
6.2中的資源型別
N/A

在AEM 6.1中,標準全文檢索述詞是搜尋表單的一部分。 在6.2中,全文欄位已由OmniSearch取代。 這個述詞會以程式設計方式略過,而且可以移除。

動作: 完全移除節點。

其他全文檢索述詞 other-fulltext-predicates

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

路徑瀏覽器述詞 path-browser-predicates

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

標籤述詞 tags-predicates

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

頁面狀態述詞 page-status-predicate

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「。 這是避免衝突所需。

日期範圍述詞 date-range-predicates

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

隱藏的篩選器 hidden-filter

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

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

Analytics 述詞 analytics-predicate

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

範圍述詞 range-predicate

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

NOTE
注意:相對於6.1,範圍述詞不再在搜尋列中呈現標籤。

選項屬性述詞 options-property-predicate

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

滑桿範圍述詞 slider-range-predicate

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

元件述詞 components-predicate

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

作者述詞 author-predicate

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

範本述詞 templates-predicate

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

資產管理搜尋邊欄 assets-admin-search-rail

以下節點代表中的名稱 /conf/global/settings/dam/search/facets/assets/items

節點名稱為「全文」的全文述詞 fulltext-predicate-with-node-name-fulltext-1

6.1中預設搜尋表單中的節點
全文
6.1中的資源型別
dam/gui/components/admin/customsearch/searchpredicates/fulltextpredicate
6.2中的資源型別
N/A

在6.1中,標準全文檢索述詞是搜尋表單的一部分。 在6.2中,全文欄位已由OmniSearch取代。 這個述詞會以程式設計方式略過,而且可以移除。

動作: 移除上述節點。

路徑瀏覽器述詞 path-browser-predicates-1

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型別述詞 mime-type-predicates

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

檔案大小述詞 file-size-predicates

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位置所示。

資產上次修改時間述詞 asset-last-modified-predicates

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

發佈述詞 publish-predicate

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.

狀態述詞 status-predicates

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

到期狀態述詞 expiry-status-predicates

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

中繼資料有效性述詞 metadata-validity-predicates

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

評等述詞 rating-predicates

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

方向述詞 orientation-predicate

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 屬性。

樣式述詞 style-predicate

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 屬性。

視訊格式述詞 video-format-predicates

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述詞 mainasset-predicate

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

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

recommendation-more-help
19ffd973-7af2-44d0-84b5-d547b0dffee2