In AEM 6.2, the location where Customized Search Forms are stored in the repository has changed. Upon upgrading, they are moved from their location in 6.1 at:
to a new location under:
Because of this, manual adjustments are required after an upgrade in order for the forms to continue to function.
This applies to new Search Forms as well as default Forms that have been customized.
For more information, see the documentation on Search Facets.
Unless stated otherwise, most of the adjustments that need to be done after the upgrade require changing the sling:resourceType
property for the configured custom Search Forms. This is needed so that the property points to the correct location of the rendering script.
You can change the property by doing the following:
https://server:port/crx/de/index.jsp
Below you will find a list of all cusom Search Forms and the modifications they require after the upgrade. They refer to the names in /conf/global/settings/cq/search/facets/sites/items
.
Node/s in default Search Form in 6.1 | fulltext |
Resource type in 6.1 |
cq/gui/components/common/admin/customsearch/searchpredicates/fulltextpredicate |
Resource type in 6.2 | n/a |
In AEM 6.1, the standard fulltext predicate was part of the search form. In 6.2, the fulltext field has been replaced by the OmniSearch. This predicate is skipped programmatically and can be removed.
Action: Remove the node entirely.
Node/s in default Search From in 6.1 | n/a |
Resource type in 6.1 |
cq/gui/components/common/admin/customsearch/searchpredicates/fulltextpredicate |
Resource type in 6.2 | cq/gui/components/coral/common/admin/customsearch/searchpredicates/fulltextpredicate |
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above).
Node/s in default Search Form in 6.1 |
path |
Resource type in 6.1 |
cq/gui/components/common/admin/customsearch/searchpredicates/pathpredicate |
Resource type in 6.2 | cq/gui/components/coral/common/admin/customsearch/searchpredicates/pathpredicate |
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above).
Node/s in default Search Form in 6.1 |
tags |
Resource type in 6.1 |
cq/gui/components/common/admin/customsearch/searchpredicates/tagspredicate |
Resource type in 6.2 | cq/gui/components/coral/common/admin/customsearch/searchpredicates/tagspredicate |
Action: Adjust the resourceType property (add “/coral” like in the 6.2 location indicated above).
Node/s in default Search Form in 6.1 |
pagestatuspredicate |
Resource type in 6.1 |
cq/gui/components/siteadmin/admin/searchpanel/searchpredicates/pagestatuspredicate |
Resource type in 6.2 | n/a |
The Page Status has been replaced by two Options Property Predicates, one for publish and one for LiveCopy status.
Actions:
Remove the pagestatuspredicate
node
Copy node
/libs/settings/cq/search/facets/sites/jcr:content/items/publishstatuspredicate
/conf/global/settings/cq/search/facets/sites/jcr:content/items
Copy node
/libs/settings/cq/search/facets/sites/jcr:content/items/livecopystatuspredicate
/conf/global/settings/cq/search/facets/sites/jcr:content/items
Make sure you set listOrder
property for the analyticspredicate
node to “8”. This is needed in order to avoid conflicts.
Node/s in default Search Form in 6.1 |
daterangepredicate |
Resource type in 6.1 | cq/gui/components/common/admin/customsearch/searchpredicates/daterangepredicate |
Resource type in 6.2 | cq/gui/components/coral/common/admin/customsearch/searchpredicates/daterangepredicate |
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above).
Node/s in default Search Form in 6.1 |
type |
Resource type in 6.1 |
granite/ui/components/foundation/form/hidden |
Resource type in 6.2 | granite/ui/components/foundation/form/hidden |
Action: Nothing to adjust.
Node/s in default Search Form in 6.1 |
analyticspredicate |
Resource type in 6.1 |
cq/gui/components/siteadmin/admin/searchpanel/searchpredicates/analyticspredicate |
Resource type in 6.2 | cq/gui/components/coral/siteadmin/admin/searchpanel/searchpredicates/analyticspredicate |
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above).
Node/s in default Search Form in 6.1 |
n/a |
Resource type in 6.1 |
cq/gui/components/siteadmin/admin/searchpanel/searchpredicates/rangepredicate |
Resource type in 6.2 | cq/gui/components/coral/siteadmin/admin/searchpanel/searchpredicates/rangepredicate |
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above).
Note: In opposition to 6.1, the Range Predicate does no longer render a tag in the search bar.
Node/s in default Search Form in 6.1 |
n/a |
Resource type in 6.1 |
cq/gui/components/siteadmin/admin/searchpanel/searchpredicates/optionspredicate |
Resource type in 6.2 | cq/gui/components/coral/siteadmin/admin/searchpanel/searchpredicates/optionspredicate |
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above).
Node/s in default Search Form in 6.1 |
n/a |
Resource type in 6.1 |
cq/gui/components/siteadmin/admin/searchpanel/searchpredicates/sliderrangepredicate |
Resource type in 6.2 | cq/gui/components/coral/siteadmin/admin/searchpanel/searchpredicates/sliderrangepredicate |
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above).
Node/s in default Search Form in 6.1 |
n/a |
Resource type in 6.1 |
cq/gui/components/siteadmin/admin/searchpanel/searchpredicates/componentspredicate |
Resource type in 6.2 | cq/gui/components/coral/siteadmin/admin/searchpanel/searchpredicates/componentspredicate |
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above).
Node/s in default Search Form in 6.1 |
n/a |
Resource type in 6.1 |
cq/gui/components/siteadmin/admin/searchpanel/searchpredicates/userpredicate |
Resource type in 6.2 | cq/gui/components/coral/siteadmin/admin/searchpanel/searchpredicates/userpredicate |
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above).
Node/s in default Search Form in 6.1 |
n/a |
Resource type in 6.1 |
cq/gui/components/siteadmin/admin/searchpanel/searchpredicates/templatespredicate |
Resource type in 6.2 | cq/gui/components/coral/siteadmin/admin/searchpanel/searchpredicates/templatespredicate |
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above).
The nodes below refer to the names in /conf/global/settings/dam/search/facets/assets/items
Node/s in default Search Form in 6.1 | fulltext |
---|---|
Resource type in 6.1 | dam/gui/components/admin/customsearch/searchpredicates/fulltextpredicate |
Resource type in 6.2 | n/a |
In 6.1 the standard fulltext predicate was part of the search form. In 6.2 the fulltext field has been replaced by OmniSearch. This predicate is skipped programmatically and can be removed.
Action: Remove the above mentioned node.
Node/s in default Search Form in 6.1 | pathbrowser |
---|---|
Resource type in 6.1 | dam/gui/components/admin/customsearch/searchpredicates/pathbrowserpredicate |
Resource type in 6.2 | dam/gui/coral/components/admin/customsearch/searchpredicates/pathbrowserpredicate |
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above).
Node/s in default Search Form in 6.1 | mimetype |
---|---|
Resource type in 6.1 | dam/gui/components/admin/customsearch/searchpredicates/optionspredicate |
Resource type in 6.2 | dam/gui/coral/components/admin/customsearch/searchpredicates/optionspredicate |
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above).
Node/s in default Search Form in 6.1 | filesize |
---|---|
Resource type in 6.1 | dam/gui/components/admin/customsearch/searchpredicates/filesizepredicate |
Resource type in 6.2 | dam/gui/coral/components/admin/customsearch/searchpredicates/sliderangepredicate |
Action: Adjust resourceType
as shown in the 6.2 location above.
Node/s in default Search Form in 6.1 | assetlastmodifiedpredicate |
---|---|
Resource type in 6.1 | dam/gui/components/admin/customsearch/searchpredicates/assetlastmodifiedpredicate |
Resource type in 6.2 | dam/gui/coral/components/admin/customsearch/searchpredicates/assetlastmodifiedpredicate |
Action: Adjust the resourceType property (add “/coral” like in the 6.2 location indicated above).
Node/s in default Search Form in 6.1 | publish |
---|---|
Resource type in 6.1 | dam/gui/components/admin/customsearch/searchpredicates/publishpredicate |
Resource type in 6.2 | dam/gui/coral/components/admin/customsearch/searchpredicates/publishpredicate |
Actions:
Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above)
Add an optionPaths
(of type String) property with the value: /libs/dam/options/predicates/publish
Add singleSelect
property with boolean value true
.
Node/s in default Search Form in 6.1 | status |
---|---|
Resource type in 6.1 | dam/gui/components/admin/customsearch/searchpredicates/optionspredicate |
Resource type in 6.2 | dam/gui/coral/components/admin/customsearch/searchpredicates/optionspredicate |
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above)
Node/s in default Search Form in 6.1 | expirystatus |
---|---|
Resource type in 6.1 | dam/gui/components/admin/customsearch/searchpredicates/expiredassetpredicate |
Resource type in 6.2 | dam/gui/coral/components/admin/customsearch/searchpredicates/expiredassetpredicate |
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above)
Node/s in default Search Form in 6.1 | metadatavalidity |
---|---|
Resource type in 6.1 | dam/gui/components/admin/customsearch/searchpredicates/optionspredicate |
Resource type in 6.2 | dam/gui/coral/components/admin/customsearch/searchpredicates/optionspredicate |
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above)
Node/s in default Search Form in 6.1 | rating |
---|---|
Resource type in 6.1 | dam/gui/components/admin/customsearch/searchpredicates/ratingpredicate |
Resource type in 6.2 | dam/gui/coral/components/admin/customsearch/searchpredicates/sliderangepredicate |
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above)
Node/s in default Search Form in 6.1 | orientation |
---|---|
Resource type in 6.1 | dam/gui/components/admin/customsearch/searchpredicates/tagsfilterpredicate |
Resource type in 6.2 | cq/gui/components/coral/common/admin/customsearch/searchpredicates/tagspredicate |
Actions:
Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above)
Add a fieldLabel
property with the same value as the text
property on the same node.
Add an emptyText
property with the value same as the text
property on the same node.
Add a rootPath
property with the same value same as the optionPaths
property on the same node.
Node/s in default Search Form in 6.1 | style |
---|---|
Resource type in 6.1 | dam/gui/components/admin/customsearch/searchpredicates/tagsfilterpredicate |
Resource type in 6.2 | cq/gui/components/coral/common/admin/customsearch/searchpredicates/tagspredicate |
Actions:
Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above)
Add a fieldLabel
property with the same value as the text
property on the same node.
Add an emptyText
property with the value same as the text
property on the same node.
Add a rootPath
property with the same value same as the optionPaths
property on the same node.
Node/s in default Search Form in 6.1 | videoFormat |
---|---|
Resource type in 6.1 | dam/gui/components/admin/customsearch/searchpredicates/optionspredicate |
Resource type in 6.2 | dam/gui/coral/components/admin/customsearch/searchpredicates/optionspredicate |
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above)
Node/s in default Search Form in 6.1 | mainasset |
---|---|
Resource type in 6.1 | granite/ui/components/foundation/form/hidden |
Resource type in 6.2 | granite/ui/components/coral/foundation/form/hidden |
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above)