It should be used whenever MidCOM documents are indexed, either directly or as a base class.
It will take an arbitrary Midgard Object, for which Metadata must be available. The document class will then load the metadata information out of the database and populate all metadata fields of the document from there.
If you want to index datamanager driven objects, you should instead look at the class midcom_services_indexer_document_datamanager2.
The GUID of the object being referred is used as a RI.
The documents type is "midcom".
The source member is automatically populated with the GUID of the document, the RI is set to it as well. The URL is set to an on-site permalink.
mixedThe content object to load, passed to the metadata constructor.