Annotation Content Search Syntax
Advanced search syntax can be used to search for text contained in sticky notes, callout text, comments, and text boxes. All advanced search types can be customized with advanced search operators and wildcards; however, by default, annotation searches are performed with an implicit asterisk wildcard before and after the specified value to capture all possible variations of the beginning and end of the search phrase.
Any text annotation (sticky note, callout text, or text box)
- {LF:AnnText~="Value", Type=Type}
Alternatively,
- {LFAnn:Text~="Value", Type=Type}
Type is optional, and can be set to S, T, and/or C for sticky notes, text boxes, or callout text respectively. If the Type parameter is omitted, the search will be performed on all three annotation types.
If you use the LFAnn:Text syntax, you can conduct an attribute search on attributes other than Type. For example, you can search for annotations that contain "read" in their text and that were created after November 2016 with the string {LFAnn:Text~="read", Created > "11/30/2016"}. For a full list of attributes you can search on, see the Advanced Search Syntax white paper.
Sticky note
- {LF:Sticky~="Value"}
Callout text
- {LF:Callout~="Value"}
Text box
- {LF:Textbox~="Value"}
Value is the annotation text to be searched for; it must be enclosed by quotation marks.
To search for text in any text annotation (sticky note, callout text, or text box) that contains the word "Due", using indexed search:
{LF:AnnText~="Due"}
To search for text in sticky notes or callout text (but not text boxes) that contains the word "Upload", using non-indexed search:
{LF:AnnText="Upload", Type=SC}
{LF:Sticky~="'Ready for review'"}
To search all sticky notes that contain the word "rodent" in their text and all text boxes that contains the word "gopher" in their text using an indexed search:
{LF:Sticky~="rodent"} | {LF:TextBox~="gopher"}
To search all text annotations that contain "model" in their text and that were last modified before March 13, 2014:
- {LF:AnnText="model", Modified<"03/13/2014"}