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

Question

Question

searching for documents where entry name contains X

asked on October 30, 2015

We have a workflow that erronously created thousands of duplicate shortcuts. We need a way to easily find them and delete them from the search results pane.

Since all duplicates are in the same folder as their parent entries, their name will contain (2), (3), (4), etc.

How can I do a search to find those documents based on that? I tried using a wildcard in the document name search in the client, but it seems to be interpreted literally. I also read the advanced search syntax and couldn't find any "contains" operator for entry names.

0 0

Replies

replied on October 30, 2015

I also noticed that search for shortcuts with a specific template always returns zero results. Is that a bug? How do we find shortcuts whose parent entry has a specific template or field value?

0 0
replied on November 2, 2015 Show version history

This is likely due to the option Resolve Shortcuts being off. From the help files:

Resolve shortcuts (may slow search performance): Whether shortcuts will inherit the traits of their parent documents for search purposes.

Basically, unless this option is on, searches will only return a shortcut if the shortcut itself has the property being searches on (the name of the shortcut, its containing folder). Other properties, such as the template applied, are properties of the document rather than its shortcut.

Resolve shortcuts is intended for use in transparent records management and similar scenarios where users must search on documents when they can only see the shortcuts.

0 0
replied on November 2, 2015

You can try this in the advanced search

{LF:Name="* ([0-9])", Type="DB"}

The other thing that you will need to add is the within folder so you do not search the entire repository.

0 0
replied on November 2, 2015 Show version history

I'm not seeing the issue you described with the wildcard being interpreted literally when using Client 9.2.0.343. When you're having issues with a search, it's always a good idea to post sample search criteria/search syntax as well as the version you're using (of Server and Client, if they're different)

Using the * wildcard to indicate any character, and the [1-9] wildcard syntax to indicate any digit 1-9, the following search returns documents of the format Name (#):

Note that if you need to search up into the double digits, you'll need to either perform two searches or use the advanced search syntax to combine two search terms, since [] wildcards indicate exactly one character. The search criteria for double digits would look like *([1-9][0-9]).

 

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

Sign in to reply to this post.