Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Search scope for AEM Version 5.6.1.SP2?

Avatar

Level 1

Hello, I am trying to figure out a way to configure a search scope. Basically, I just want to search within a particular folder and get accurate results. Any idea how to do this in AEM Version 5.6.1.SP2? If not, anyone have a decent workaround? Thank you for your time. 

1 Accepted Solution

Avatar

Correct answer by
Level 5

@annao63476039 The best option is to restrict the user access to the folders under which you would need them to search and remove access to other parts of the content if they do not use other paths, this would ensure when these user /group uses the search they will get results from the folder they have access.

 

If you cannot restrict access for these users and would like to still restrict search then overlay the below path and set the value to the folder you need the search to work

/libs/wcm/core/content/search/searchpanel/facets/path

Once you do this, the search tool in classic UI will always search under this folder.

 

Please note, I do not have 5.6.1 instance the path shared is from 6.x version of AEM, but I would expect it to be same .

 

Also as AEM 5.6.1 is not supported anymore, do consider upgrading to latest version of AEM from new features.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 5

@annao63476039 The best option is to restrict the user access to the folders under which you would need them to search and remove access to other parts of the content if they do not use other paths, this would ensure when these user /group uses the search they will get results from the folder they have access.

 

If you cannot restrict access for these users and would like to still restrict search then overlay the below path and set the value to the folder you need the search to work

/libs/wcm/core/content/search/searchpanel/facets/path

Once you do this, the search tool in classic UI will always search under this folder.

 

Please note, I do not have 5.6.1 instance the path shared is from 6.x version of AEM, but I would expect it to be same .

 

Also as AEM 5.6.1 is not supported anymore, do consider upgrading to latest version of AEM from new features.