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

Question

Question

Exclude template from search

asked on February 6, 2015

Hello Everybody,

Looking the way how to exclude specific template from the search, i tried this in advanced search - it returns an error:

-{[Test Template]} and 

{[]}-{[Test Template]}

Any suggestions?

Thank you

Vladimir

0 0

Answer

SELECTED ANSWER
replied on February 8, 2015

You need to have an actual search syntax and append the -{[General]} to it. If your goal is to search for all entries that don't have the General template, then you'll need to first include the search syntax for all entries. You can try something like

{LF:ID>0}-{[General]}

If you just wanted to do something like search for all documents that don't have the general template, then you can use

{LF:Name="*", Type="DB"}-{[General]}

0 0

Replies

replied on February 6, 2015

You should just be able to append

-{[TemplateName]}

to your search syntax to have it exclude entries assigned that template. For example, I want to find all entries with names that start with "sample" and I want to exclude the ones that are assigned the General template. My advanced search would look like

{LF:Name="sample*"}-{[General]}

If that's not working for you, can you describe in what way it's failing?

1 0
replied on February 7, 2015

Thank you Alexander,

Both of them returned syntax error, attaching screenshot.

 

Screen Shot 2015-02-07 at 9.59.46 AM.png
0 0
SELECTED ANSWER
replied on February 8, 2015

You need to have an actual search syntax and append the -{[General]} to it. If your goal is to search for all entries that don't have the General template, then you'll need to first include the search syntax for all entries. You can try something like

{LF:ID>0}-{[General]}

If you just wanted to do something like search for all documents that don't have the general template, then you can use

{LF:Name="*", Type="DB"}-{[General]}

0 0
replied on February 9, 2015

Thank you Sir

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

Sign in to reply to this post.