curl -H “Content-Type: application/json” -XPUT ‘192.168.100.111:9200/tgdsm1/fileinfo/_mapping’ -d’{“fileinfo”:{“properties”:{“File_ID”:{“type”:“text”},“FileName”:{“type”:“text”,“analyzer”:“ik_max_word”},“User_ID”:{“type”:“text”,“analyzer”:“ik_max_word”},“LastChangerTime”:{“type”:“date”,“format”:“yyyy-MM-dd HH:mm:ss”},“FileSize”:{“type”:“long”},“file-contents”:{“type”:“text”,“analyzer”:“ik_max_word”}}}}’
记录一个elasticsearch用linux命令行curl来建立mapping映射
最新推荐文章于 2022-08-16 10:42:31 发布