'Returns the field that supplies the primary document to be indexed.'

def get_content_field(self):

    for (field_name, field) in self.fields.items():
        if (field.document is True):
            return field.index_fieldname
