摘要: url:POST http://127.0.0.1:9200/_reindex 参数: 阅读全文
posted @ 2018-07-31 22:56 anxbb 阅读(163) 评论(0) 推荐(0) 编辑
摘要: elasticsearch-jdbc是一个将关系型数据库(RDBMS)数据导入到ElasticSearch库中的一个工具包,支持mysql、oracle、postgrey、csv等存储列式数据的容器。目前最新的版本是2.3.4.1,支持的ElasticSearch的版本为2.3.4。 下载elast 阅读全文
posted @ 2018-07-31 22:50 anxbb 阅读(4779) 评论(0) 推荐(0) 编辑
摘要: db.coll.findAndModify({ query:{x:"ggg"}, update:{$set:{"x":"gggg"}}, fields:{"x":1}, new:true, upsert:true}) query:查询语句 update:(和remove必须有一个,也只能存在一个) 阅读全文
posted @ 2018-07-31 19:00 anxbb 阅读(313) 评论(0) 推荐(0) 编辑
摘要: db.aaaa.update({},{$push:{money:{$each:[8,9,10],$slice:-4}}}) db.aaaa.update({},{$addToSet:{money:{$each:[8,9,10,11,12,13]}}}) db.aaaa.update({},{$pop 阅读全文
posted @ 2018-07-31 16:27 anxbb 阅读(131) 评论(0) 推荐(0) 编辑