def METHOD_NAME(self, annotation):
    operation = {
        "_index": self._target_index,
        "_id": annotation.id,
    }
    if self.es_client.server_version < Version("7.0.0"):
        operation["_type"] = self.es_client.mapping_type
    data = presenters.AnnotationSearchIndexPresenter(
        annotation, self.request
    ).asdict()
    return {self.op_type: operation}, data