我的Elasticsearch服务器端具有以下数据:
{
"took": 1,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 19674,
"max_score": 1,
"hits": [
{
"_index": "manager",
"_type": "bdm_order_user_info",
"_id": "222",
"_score": 1,
"_source": {
"order_info_id": 222,
"order_id": "ORDR-rrprmno8eimh5ew7tnlgcvjkh3md9",
"user_id": "3rph28dtrnd5x2vb2mcxpr2sk9wsdl",
"user_first_name": "John",
"user_last_name": "Doe",
"user_phone": "072XXXXXX",
"user_street": "some street",
"user_street_nr": "273",
"user_bl": "",
"user_sc": "",
"user_et": "",
"user_ap": "",
"user_judet": "Mehedinti",
"user_cod_judet": "MH",
"user_oras": "HINOVA",
"user_country": "ro",
"user_cod_postal": 227245,
"user_dpd_siteId": 0,
"user_dpd_site_type": "0",
"user_dpd_street_type": "0",
"user_cnp": "4881219256243",
"user_cnp_real": 0,
"user_email": "",
"user_comments": "",
"order": {
"order_id": 222,
"order_unique_id": "ORDR-rrprmno8eimh5ew7tnlgcvjkh3md9",
"order_code": null,
"user_id": "3rph28dtrnd5x2vb2mcxpr2sk9wsdl",
"operator_id": 47,
"medic_id": 45,
"order_total": "210.00",
"transport_tax": "20.00",
"order_currency": "RON",
"order_status": "L",
"order_date": "2014-06-20 11:09:16",
"order_delivery_date": "2014-06-20 11:09:16",
"order_pay_date": null,
"order_weight": "0.10",
"bill_id": "AYU00029653",
"courier_id": 1,
"company_id": 1,
"contab_company_id": 0,
"awb": "AYU23660743I",
"awb_comments": "",
"bookurier_nt": "0",
"dpd_nt": "0",
"otto_nt": "0",
"otto_nt_sent": 0,
"optim_nt": "0",
"optim_nt_sent": 0,
"deleted": 0
}
}
},
我是Elasticsearch的新手,因此我需要一些帮助来创建规则以执行以下操作:
谢谢! :)