pruneDocument

Prune stored fields of a document. Note that you can also arbitrarily
change values of the retrieved fields, so long as the field names belong
to a list of fields returned from getFieldInfos(FieldInfos).

Parameters:

doc - document number

parent - original field selector that limits what fields will be
retrieved.