{LF:LOOKIN="CPS-Laserfiche\School Properties\Project Files"} - {[School Properties]} & {LF:Name="*", Type="DB"}
Question
Question
How do you run this ?
Replies
Here's how you can run a search script like that in the Windows Client:
- Open the Advanced Search panel. Either by the magnifying glass button or from the View menu and selecting Advanced Search.
- Use the Customize Search dropdown to uncheck all search types except Search Syntax.
- Check the box to "Include search syntax in query" to enable the field to be editable (if this isn't marked, the syntax is just populated by whatever you enter in all the other search type fields, which is very helpful for determining syntax you may need for other purposes).
- Paste in the search syntax that you are using in this post.
- Click the search button.
If you are using the Web Client, then the steps will be similar but different. I don't use it myself, so I can't walk through, but there is lots of information in the help files. Here's a link to the "Search Pane Searches in the Laserfiche web client" page in the help files.
Edit to add: and just for reference, here's the help files regarding the Windows Client: "Search Pane Searches in the Laserfiche Windows client" page in the help files.
I copied and pasted and no results. But there are incorrect ones in there.
Here's a breakdown of what this is searching:
- {LF:LOOKIN="CPS-Laserfiche\School Properties\Project Files"}
- This is searching within the folder path "CPS-Laserfiche\School Properties\Project Files". This will include subfolders.
- - {[School Properties]}
- This is excluding any document that has the "School Properties" template.
- & {LF:Name="*", Type="DB"}
- This will include any document with any name. The type is throwing me a bit though. Usually there are three types, Documents (D), Folders (F), and Shortcuts (S).
I'm not certain what B would be for in this context. But testing in my environment it still finds documents based on the D value.
- This will include any document with any name. The type is throwing me a bit though. Usually there are three types, Documents (D), Folders (F), and Shortcuts (S).
Do those details cover what you are searching for? If not, can you elaborate on your intended search? When you say there are incorrect ones, can you elaborate on that?
Edit to Add: I see that the type of B is documents without templates.
"B" is for "batch" which is a very very old way of referring to documents without a template.
I am trying to find all the documents in this folder that do not have the "School Properties" template applied.
Testing in my environment, I think it should be working, other than maybe getting rid of the type B. I just ran a version like this in my environment, and it found all documents in the targeted folder that didn't have the targeted template.
{LF:LOOKIN="CPS-Laserfiche\School Properties\Project Files"} - {[School Properties]} & {LF:Name="*", Type="D"}
Basically, the only change I made from your original was changing the type to just search for D instead of DB.
I copied and pasted your line and No Search hits found
Actually three wrong templates as well as no template at all.
I can actually do a template search and find the information. Basically there is one wrong template being used in that folder.
You can have the system create the search syntax using those other searches like that.
Do the search the way you just did, but with the template the documents are supposed to have, and include the "Search Syntax" option but the "Include search syntax in query" checkbox turned off. You'll probably see a ton of results since that is your expected criteria.
When you run the search, it'll create the search syntax for you. After that, you can close out the "Field Search" and "Within Folder" search, so that you just have the "Search Syntax" option. Then you can mark the "Include search syntax in query" checkbox so that you can edit the syntax.
It will have generated the syntax searching for the desired template, but you should be able to just add the - symbol to change that part to be "not true" instead of "true".
Hopefully that all makes sense.