获取ES mapping 数据结构
GET /es_customer_qd_oa_26/_mapping
模糊匹配
{“size”:20,“query”:{“bool”:{“filter”:[{“term”:{“CorpUin”:2852199126}},{“match_phrase”:{“FName.FName_ngram”:{“query”:“Decapititor”}}},{“match_phrase”:{“FName”:{“query”:“Decapititor”,“slop”:1}}}]}}}
多层匹配字段存在
{“size”:“15”,“from”:0,“query”:{“bool”:{“filter”:[{“term”:{“CorpUin”:2852199126}},{“term”:{“FStatus”:0}},{“nested”:{“path”:“ext_friendship”,“query”:{“bool”:{“filter”:{“term”:{“ext_friendship.FStatus”:0}}}}}}]}}}