I run this query
from elasticsearch import Elasticsearch es = Elasticsearch([{\'host\':\'127.0.0.1\' , \'port\' : 1234}]) query = \'{ "query": { "