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

Question

Question

Search only subfloders

asked on March 7, 2018 Show version history

Good afternoon,

I have a query in a "Search Repository" activity in Workflow that looks inside of a folder an subfolders. The level is only one parent and children, but children folders do not contain other folders.

Example:

Folder 1 = "Xerox" with children folder "Copier" and "Printer"

Folder 2 = "Dell" with children folder "Computer"

Folder 3 = "Office Max" with children folder "Paper", "Chair", etc

The children folder have metadata attached to it in which I want to search against.

When I do a search I have something like this:

{LF:LookIn="\some\parent\path", Subfolders=y}&{LF:name="*", Type="F"}

and in order to take into consideration the children folders I have "Subfolders=y"

This works great, but I'm guessing that if I search for something like "where metadata = findme" the search still searches thru the parent folder, even though the metadata is only applied to the children folder.

How can I improve my search query so that the search only searches inside of the parent folders, but not the parent folders?

Thank you,

Raul Gonzalez

0 0

Answer

SELECTED ANSWER
replied on March 7, 2018

There may be a more efficient way to do it, but below should work

({LF:LookIn="\some\parent\path", Subfolders=1} & {LF:name="*", Type="F"}) - {LF:LookIn="\some\parent\path", Subfolders=0}

 

1 0
replied on March 7, 2018

Thanks Bert, this is exactly what I was looking for. Now the results are much less and the "For Each Entry" activity doesn't have to go through the whole list of parent folders.

Thanks again,

Raul Gonzalez

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.