docs: def replace(self, resource, id_, document):
          """Replace document in index."""
          args = self._es_args(resource, refresh=True)
          document.pop('_id', None)
          document.pop('_type', None)
          self._update_parent_args(resource, args, document)
          return self.elastic(resource).index(body=document, id=id_, **args)