3.0 and 3.1
While annotations can be gathered from the queried documents, accessing the annotations requires a JavaScript task to allow them to be exported as document fields. This will change in future versions.
The following code will retrieve the annotations for each document and add each as a field
var rp = rd.getExtendedProperties().toString(); rp = rp.replace('[','').replace(']',''); print(rp); var split = rp.split(','); var i = 0; for each (var r in split){ rd.addSingleField('annotation'+i,r); i++; }
3.1.1+
Annotations will be added as fields to the document with the name annotationX, where X is an integer.