public function transformToElasticaDocument($object)
    {
        $document = $this->transformer->transform($object, []);

        $data = call_user_func($this->serializer, $object);
        $document->setData($data);

        return $document;
    }