<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_document_field(instance):
 """ Returns which field the search index has marked as it's `document=True` field. """

        for name, field in instance.searchindex.fields.items():
            if field.document is True:
                return name