Upgrading Custom Search Forms
- Topics:
- Upgrading
CREATED FOR:
- Admin
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 and default Forms that have been customized.
For more information, see the documentation on Search Facets.
Changing the resourceType property
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:
- Open CRXDE Lite by going to
https://server:port/crx/de/index.jsp
- Browse to the location of the node that needs to be adjusted, as specified in the List of Custom Search Forms below.
- Click the node. In the right properties pane, click and modify the sling:resourceType property.
- Finally, save the changes by pressing the Save All button.
List of Custom Search Forms
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
.
Fulltext Predicate with node name “fulltext”
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.
Other Fulltext Predicates
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above).
Path Browser Predicates
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above).
Tags Predicates
Action: Adjust the resourceType property (add “/coral” like in the 6.2 location indicated above).
Page Status Predicate
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 theanalyticspredicate
node to “8”. This is needed to avoid conflicts.
Date Range Predicates
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above).
Hidden Filter
Action: Nothing to adjust.
Analytics Predicate
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above).
Range Predicate
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above).
Options Property Predicate
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above).
Slider Range Predicate
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above).
Components Predicate
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above).
Author Predicate
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above).
Templates Predicate
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above).
Assets Admin Search Rail
The nodes below refer to the names in /conf/global/settings/dam/search/facets/assets/items
Fulltext Predicate with node name “fulltext”
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.
Path Browser Predicates
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above).
Mime Type Predicates
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above).
File Size Predicates
Action: Adjust resourceType
as shown in the 6.2 location above.
Asset Last Modified Predicates
Action: Adjust the resourceType property (add “/coral” like in the 6.2 location indicated above).
Publish Predicate
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 valuetrue
.
Status Predicates
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above)
Expiry Status Predicates
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above)
Metadata Validity Predicates
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above)
Rating Predicates
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above)
Orientation Predicate
Actions:
-
Adjust the
resourceType
property (add “/coral” like in the 6.2 location indicated above) -
Add a
fieldLabel
property with the same value as thetext
property on the same node. -
Add an
emptyText
property with the value same as thetext
property on the same node. -
Add a
rootPath
property with the same value same as theoptionPaths
property on the same node.
Style Predicate
Actions:
-
Adjust the
resourceType
property (add “/coral” like in the 6.2 location indicated above) -
Add a
fieldLabel
property with the same value as thetext
property on the same node. -
Add an
emptyText
property with the value same as thetext
property on the same node. -
Add a
rootPath
property with the same value same as theoptionPaths
property on the same node.
Video Format Predicates
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above)
Mainasset Predicate
Action: Adjust the resourceType
property (add “/coral” like in the 6.2 location indicated above)