You are viewing limited content. For full access, please sign in.

Question

Question

How can I return the documents contained within all folders and subfolders with a specific name?

asked on October 28, 2014

I'd like to be able to return all documents that sit within a subfolder named "XYZ."

 

To be more specific, if I have three folders name "1", "2", and "3", and each of those has three subfolders named, "ABC," "DEF", and "XYZ", I'd like to return the documents from "1", "2", and "3" that are within the "XYZ" folders.

 

Thanks,

Adam

0 0

Answer

SELECTED ANSWER
replied on October 28, 2014

You can perform this search using the advanced search syntax. to search within all folders that have a specific name, you can use the LF:ParentName search to specify the name of the containing folder.

Example search:

{LF:ParentName="XYZ"}

This search will return all documents that are in any folder named XYZ.

If you want to search for specific document names, you can do the following:

{LF:ParentName="XYZ"}&({LF:Name="1"}|{LF:Name="2"})

This search will return all documents named 1 or 2 in any folder named XYZ.

You can limit the search to within a certain folder if you don't want to be searching the entire repository. For example, if you have the following structure:

HR

---Ann

------ABC

------XYZ

---Jim

------ABC

------XYZ

Sales

---Jane

------ABC

------XYZ

 

You could restrict the search to the HR folder by adding LF:LOOKIN:
 

{LF:ParentName="XYZ"}&{LF:Lookin="HR\"}

 

3 0

Replies

replied on October 28, 2014

 ({LF:LOOKIN="REPOSITORY\1"}|{LF:LOOKIN="REPOSITORY\2"}|{LF:LOOKIN="REPOSITORY\3"})&
{LF:ParentName="XYZ"}

2 0
You are not allowed to follow up in this post.

Sign in to reply to this post.