@staticmethod
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
