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
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
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.
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=*}
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
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)
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!
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.
Boom - that got it! Thanks for doing all my thinking for me today Bert!!