python ElasticSearch ES 搜索词 完全匹配 精准匹配

query_phone = {
                "size":100,
                "query":{"nested": {
                        "path":"contact",
                        "query" : {"term":{
                                "contact.customer_number.keyword":'ZiihANGooRDG2K7ME8Fvzg=='}
                 }}}}

query_company = {
    "query": {
        "term": {
             "company_name":'山西*****有限公司'
         }
    }
}

query_name = {
                "size":100,
                "query":{"nested": {
                        "path":"boss",
                        "query" : {"term":{"boss.name.keyword":'**'}
                 }}}}

query22 = {'query': {'term': {'company_name.keyword': '内蒙**有限责任公司'}}}

 

posted @ 2020-11-10 15:06  cup_leo  阅读(2916)  评论(0编辑  收藏  举报