kibana操作
一些KIBANA的操作,记录下,免下次重复写
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | #创建索引名为kb_question的索引,并添加mapping,即各字段属性PUT kb_question { "mappings" : { "kb_question" : { "properties" : { "content" : { "type" : "text" , "analyzer" : "ik_max_word" , "search_analyzer" : "ik_max_word" }, "topic" : { "type" : "text" , "analyzer" : "ik_max_word" , "search_analyzer" : "ik_max_word" }, "like" : { "type" : "integer" }, "read" : { "type" : "integer" }, "user_id" : { "type" : "integer" }, "user" : { "type" : "text" }, "tm" : { "type" : "date" , "format" : "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis" } } } } } <br> #插入文档数据 POST kb_question/kb_question/ { "user" : "xiqing" , "user_id" : "704981" , "topic" : "test test" , "content" : "ccccccccccccccc la la lala la la la la la!!" , "read" : "0" , "like" : "0" , "tm" : "2019-1-20 15:45:00" } GET_cat/indices/kb_question #DELETE/kb_questionPUTkb_answer { "mappings" : { "kb_answer" : { "properties" : { "user" : { "type" : "text" }, "q_id" : { "type" : "integer" }, "answer" : { "type" : "text" , "analyzer" : "ik_max_word" , "search_analyzer" : "ik_max_word" }, "like" : { "type" : "integer" }, "tm" : { "type" : "date" , "format" : "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis" } } } } } GET_cat/indices/kb_answerPOSTkb_answer/kb_answer/{ "user" : "xiqing" , "q_id" : "888" , "answer" : "answer2 answer2 answer2 answer2 answer2!!" , "like" : 0, "tm" : "2019-1-21 18:45:00" } |
结束
【推荐】还在用 ECharts 开发大屏?试试这款永久免费的开源 BI 工具!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· .NET制作智能桌面机器人:结合BotSharp智能体框架开发语音交互
· 软件产品开发中常见的10个问题及处理方法
· .NET 原生驾驭 AI 新基建实战系列:向量数据库的应用与畅想
· 从问题排查到源码分析:ActiveMQ消费端频繁日志刷屏的秘密
· 一次Java后端服务间歇性响应慢的问题排查记录
· 互联网不景气了那就玩玩嵌入式吧,用纯.NET开发并制作一个智能桌面机器人(四):结合BotSharp
· 一个基于 .NET 开源免费的异地组网和内网穿透工具
· 《HelloGitHub》第 108 期
· Windows桌面应用自动更新解决方案SharpUpdater5发布
· 我的家庭实验室服务器集群硬件清单