@needs_instance
    def serialize(self):
        serializer = self.get_serializer()
        return serializer.serialize(self.instance)
Returns a json object suitable for elasticsearch indexation.
dataset/ETHPy150Open liberation/django-elasticsearch/django_elasticsearch/managers.py/ElasticsearchManager.serialize