elasticsearch.exceptions.TransportError: TransportError 503: Data too large

You are right. I think you generate request in python.