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

Question

Question

Help with search filters

asked on December 1, 2023 Show version history

Hello, 

I am trying to search for all the folders that do not contain a specific file. Like if there is a lot of folders named with their respective order numbers in the orders folders, I need to be able to get those folders that do not contain a PDF file named "Final Order".  How would I do this? I am having trouble with the specifying the "not" in the search filters. Thank you for helping.

0 0

Replies

replied on December 1, 2023

Hi Krishna,

If the only entry in the "Order Number" folders would be the "Final Order" PDF, the following advanced search syntax may work:

{LF:ChildName<>“Final Order”, Type=“D”}

<> is the "does not equal" operator.

If there are any documents in an "Order Number" folder in addition to the "Final Order" one, the folder may still be returned (because the search query would evaluate to True for the other document). You'd have to test that out to check the behavior. If you test it, please reply back with your findings to help others in the future.

The LF:ChildName (and LF:ParentName) searches can only be performed using advanced search syntax, so you won't find them in the search filter UI.

I've attached the Advanced Search Syntax white paper where I found the LF:ChildName search type. Though the title says "10.3", it's still valid for the latest versions of Laserfiche. Advanced search syntax hasn't changed.

Hope that helps,
Sam

1 0
replied on December 5, 2023

To expand a little on Sam's suggestion: if you have a search that will return all of the Order Number folders, you can also take the syntax for that and then add

- {LF:ChildName="Final Order", Type="D"}

to the end of it to strip out the ones with a Final Order present.

 

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

Sign in to reply to this post.