from elasticsearch import Elasticsearch
from elasticsearch_dsl import Search
client = Elasticsearch('10.0.4.122:9200')
s = Search().using(client).query("match", account_number=5)
response = s.execute()
result = []
for row in response.hits:
# print row.to_dict()
result.append(row.to_dict())