网站建设资讯

NEWS

网站建设资讯

ElasticSearch的APIpython调用

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)

分享名称:ElasticSearch的APIpython调用
分享链接:http://cdweb.net/article/jshiij.html