Customize Search facets based on the path

mind119497

16-10-2020

Hello,

 

We have two different nodes for tags under /etc/tags. 

We want to customize the search facets based upon the path.

for instance: if the user is in path: /content/dam/test1 then the search facets should fetch the results of tags from the node1 (/etc/tags/node1) 

if the user is in path: /content/dam/test2 then the search facets should fetch the results of tags from the node2 (/etc/tags/node2)

 

Is this possible to do if yes, please guide me for the same 

 

Thanks

Answers (1)

Answers (1)

vanegi

Employee

17-10-2020

Hello @mind119497,

You can add custom search facets and search for assets in multiple ways based on paths. 
 
The Tag predicate allows you to perform tag-based searches for assets. 
  1. Click the AEM logo, and then go to Tools > General > Search Forms .
  2. From the Search Forms page, select Assets Admin Search Rail and then tap Edit 
     
     .

You can add other predicates like Path as defined in https://docs.adobe.com/content/help/en/experience-manager-64/assets/administer/search-facets.html for this case.

 

Thanks!!