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:
- /apps/cq/gui/content/facets
to a new location under:
- /conf/global/settings/cq/search/facets
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:
-
Browse to the location of the node that needs to be adjusted, as specified in the List of Custom Search Forms below.
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 |
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 |
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 |
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
- to /conf/global/settings/cq/search/facets/sites/jcr:content/items
- Copy node
- /libs/settings/cq/search/facets/sites/jcr:content/items/livecopystatuspredicate
- to /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 |
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 |
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 |
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 |
註解:
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |