IndexMissingException[[index] missing]
原因:缺少节点
解决:
创建节点,在es.sh文件添加
ELASTIC=域名/ip:9200
INDEX=index
#curl -XDELETE http://$ELASTIC/$INDEX/_mapping/contract
curl -XPUT "http://$ELASTIC/$INDEX"
创建es fields
ELASTIC=域名:9200
INDEX=index
#curl -XDELETE http://$ELASTIC/$INDEX/_mapping/contract
curl -XPUT "http://$ELASTIC/$INDEX/_mapping/contract" -d '
{
"contractType":{"type":"byte"},
"status":{"type":"byte"},
"paymentFlag":{"type":"byte"},
"categoryItemId":{"type":"long"},
"customerType":{"type":"byte"},
"customerId": {"type":"long"},
"contractStartDate":{"type":"date"}
}
}
}
'
每天努力一点,每天都在进步。