Hello Adobe Community,
I'm currently working with the Global/Omnisearch and Assets Admin Search features in AEM as a Cloud Service. I'm facing two primary challenges:
Thank you for your insights and assistance!
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi,
you need to overly to add custom rootpath. for example to set the custom path when you serach assets during the edit page
http://localhost:4502/editor.html/content/we-retail/en.html
/libs/wcm/core/content/editor/jcr:content/sidepanels/edit/items/tabs/items/assetsTab/items/filterPanel/items/search/items/searchpanel/items/imagepath
Thank you for your reply @arunpatidar
But I wasn't referring to the asset search within the Sites editor. My focus in Point 2 was on the Asset Search within the DAM, accessed via the search icon in the AEM Header. This search provides configurable forms for setting filters and predicates. My aim was to modify the default search path to target a specific folder within the DAM. Ideally, when users initiate an asset search, they should prioritize this folder. However, even after updating the path in the search forms, the changes aren't reflected during actual asset searches. I've attached screenshots for your reference.
1. Asset Admin Search Form
2. Search Assets within Assets
3. Searching Assets and the path value remained the same. But it should have updated to /content/dam/wknd
And the same thing I am trying to update when we are searching the assets from the AEM Welcome Page.
Here in this case, I am only expecting the search results from the /content/dam/wknd folder, for which I checked the omnisearch.js on the given path: /libs/granite/ui/components/shell/clientlibs/shell/js/omnisearch/omnisearch.js
but it seems that it's a fulltext search and there's no path defined in the JS nor anywhere in the Nodes.
So, I wanted to understand, is it even possible to achieve this? or simply can't be done.
Hi @arunpatidar , could you please check out the above response and confirm if it's possible anyhow or not?
You can try updating(overriding) the default assets path here
/libs/granite/omnisearch/content/metadata/asset
Views
Replies
Total Likes
Views
Likes
Replies