代码语言:javascript复制
os
json
datetime datetime
django.http HttpResponse
re
elasticsearch Elasticsearch
es = Elasticsearch(
[]=)
res8 = es.search(
==={
:{
:{
:{
::}
}
}
}
)
statistic():
():
hit res8[][]:
a= (%hit %hit[])
a= re.split(a);
a
row a:
id = row[]
= row[]
id
HttpResponse(a)