dfdfs 发表于 2017-11-8 08:55:43

ElasticSearch的API python调用



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)



591975491 发表于 2017-11-29 10:02:27

没看懂
页: [1]
查看完整版本: ElasticSearch的API python调用