Expand my Community achievements bar.

SOLVED

Exclude child folders from asset search in parent folder

Avatar

Level 3

Hi,

 

I am on 6.5 onsite version. I am looking for a way I could search for assets inside a parent folder that has subfolders in it. The challenge is for the search to exclude the results from subfolders.

For example: Folder A has folders A1 and A2. Current search filter allows me to set search in Folder A, and it includes results from folders A1 and A2 because they are within Folder A. Task - tell the search not to include the results from folders A1 and A2, and only show results folder A. 

 

Please note - I am not a dev and do not have access to the code. If such a filter does not exist without a code tweak, just say so to save your and my time

 

Many thanks

1 Accepted Solution

Avatar

Correct answer by
Level 5

Here are the steps :

1. Navigate to Tools (Hammer Icon) -> Assets -> Reports

2. Click on Create

3. Select Files (Report of files in folder)

4. Provide a Title for the report

5. Select the folder path

6. Check the "Exclude SubFolders" checkbox

7. Click on Next

8. Select the metadata which you want (Title, Path etc..).

9. Click Create.

10. You will receive the link to the report in your email associated with the logged in user.

11. Navigate to the link and Download the report if you wish.

 

Reference - https://experienceleague.adobe.com/en/docs/experience-manager-learn/assets/advanced/asset-reports

 

View solution in original post

6 Replies

Avatar

Level 2

Hi @PovEim ,

If you are using AEM dam search there is no direct way to exclude child paths from search results. Either you need to update the /oak:index/damAssetLucene index by removing include levels in aggregates folder and reindex it to see updated results or you can write custom query using path.exact=true to only fetch results from path given which automatically excludes child paths.

path=/content/dam/folderA
path.exact=true
type=dam:Asset
p.hits=full
p.limit=-1

Hope this helps!

Avatar

Administrator

@narendiran_ravi @Saravanan_Dharmaraj @SreenivasBr @chaudharynick @kapil_rajoria @MonalikaKapoor @khamat_bn @Sh1ju @AshwiniSathe1 Whenever you have a moment, please check out this question and share your knowledge!



Kautuk Sahni

Avatar

Level 5

How are you doing the search? Are you using the assets console? If not, what interface are you using?

Avatar

Level 3

Hi @SreenivasBr,

 

I am using just the UI, not the /damadmin...

 

Thanks 

Avatar

Correct answer by
Level 5

Here are the steps :

1. Navigate to Tools (Hammer Icon) -> Assets -> Reports

2. Click on Create

3. Select Files (Report of files in folder)

4. Provide a Title for the report

5. Select the folder path

6. Check the "Exclude SubFolders" checkbox

7. Click on Next

8. Select the metadata which you want (Title, Path etc..).

9. Click Create.

10. You will receive the link to the report in your email associated with the logged in user.

11. Navigate to the link and Download the report if you wish.

 

Reference - https://experienceleague.adobe.com/en/docs/experience-manager-learn/assets/advanced/asset-reports

 

Avatar

Level 3

Thanks, this may actually work. 

My aim was to filter out the assets in parent folder excluding assets of subfolders. Then to filter them out by specific tag and / or a creator's name. 

 

Many thanks