code: def get_document_field(instance):
          
          for name, field in instance.searchindex.fields.items():
              if field.document is True:
                  return name
docs: Returns which field the search index has marked as it's
          `document=True` field.