es
潇潇一夜风兼雨
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Elasticsearch es6.1 部分语句
现用es版本6.1.2(ps:从官网不知道怎么的点到了 es2.0的文档,找到的api一个都用不了,一把辛酸泪,记录一下 常用的api) 粘贴不能直接使用,还得去格式。。。。 1.批量更新(根据查询条件更新数据) post /goods/_update_by_query { "query": { "term": { "type": "*****" } ...原创 2018-07-23 17:52:07 · 574 阅读 · 0 评论 -
logstash input es output jdbc
记录一下踩坑过程,input elasticsearch 的官方有文档,不用多说,output jdbc 需要安装插件,安装命令./bin/logstash-plugin install logstash-output-jdbc 主要是sql问题,格式为"%{参数名}"这样,为空的字段会直接把%{参数名}" 这个入库,需要在sql中替换成空 input { elasticsear...原创 2019-01-09 11:28:00 · 1491 阅读 · 0 评论 -
es-to-mysql
input { elasticsearch { hosts => "ip:端口" index => "es index" query => '{"query":{"bool":{"must":[{"term":{"type":"user_order_goods"}}]}}}' size =&原创 2019-03-14 18:37:47 · 437 阅读 · 0 评论
分享