Search scope for AEM Version 5.6.1.SP2? | Community
Skip to main content
June 24, 2020
Solved

Search scope for AEM Version 5.6.1.SP2?

  • June 24, 2020
  • 1 reply
  • 937 views

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. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by raghavc

@annaone 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.

1 reply

raghavc
raghavcAccepted solution
Level 4
June 26, 2020

@annaone 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.