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

Question

Question

Find documents containing no annotations

asked on June 1, 2020

Hello - I'm trying to construct a search that will return only documents that do not contain any annotations of any type, and I can't seem to find the right syntax. Can anyone assist?

Thanks - Jim

0 0

Answer

SELECTED ANSWER
replied on June 1, 2020 Show version history

I understand that you want to return those with no annotations.  The - (minus) in the original search syntax removes those so if you replace the {LFAnn:ID=*} with {LF:AnnPage>=1}, then you should get what you want.

{LF:Name="*", Type="D"} - {LF:AnnPage>=1}

The above search returns all documents that you have permissions to minus documents with annotations on page number greater than or equal to 1.

1 0

Replies

replied on June 1, 2020

You can use the {LFAnn:ID} property search to remove any documents with annotations.

This search will return any document you have permissions to that does not have annotations:

{LF:Name="*", Type="D"} - {LFAnn:ID=*}

 

1 0
replied on June 1, 2020

Thanks for the reply Bert! I had tried using the LFANN syntax but it always returns an odd error: Could not find the template schema specified. Template not found. [9015] - even though I'm not referencing any templates in the search. Since we're still on 10.2, I'm wondering if this search syntax will only work in 10.3 or later - can anyone at Laserfiche confirm?

Thanks - Jim

1 0
replied on June 1, 2020 Show version history

Instead of the LFAnn:ID, try either of the the following:

{LF:AnnPage>1}

{LFANN:Page>1}

EDIT:

I guess you should use >= (greater than or equal to) instead of > (greater than)

1 0
replied on June 1, 2020

Thanks Bert, and LF:AnnPage does give results without the error I was getting from LFAnn, but I need to return docs that don't contain any annotations, not ones that do - so basically the opposite of the results from your example. And I still haven't been able to come up with the correct combination of factors to get this yet!

0 0
SELECTED ANSWER
replied on June 1, 2020 Show version history

I understand that you want to return those with no annotations.  The - (minus) in the original search syntax removes those so if you replace the {LFAnn:ID=*} with {LF:AnnPage>=1}, then you should get what you want.

{LF:Name="*", Type="D"} - {LF:AnnPage>=1}

The above search returns all documents that you have permissions to minus documents with annotations on page number greater than or equal to 1.

1 0
replied on June 1, 2020

Boom - that got it! Thanks for doing all my thinking for me today Bert!! wink

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

Sign in to reply to this post.