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': '内蒙**有限责任公司'}}}