zoukankan      html  css  js  c++  java
  • testmysqltoelasticsearch72.json 微测试,仅参考

    {
        "job": {
            "setting": {
                "speed": {
                    "channel":1
                }
            },
            "content": [
                {
                    "reader": {
                        "name": "mysqlreader",
                        "parameter": {
                            "username": "user",
                            "password": "pass",
                            "connection": [
                                {
                                    "querySql": [
                                        "select id,keyword,scount,icount,created_at from `b`.`a`"
                                    ],
                                    "jdbcUrl": [
                                        "jdbc:mysql://127.0.0.1/db"
                                    ]
                                }
                            ]
                        }
                    },
                    "writer": {
                        "name": "elasticsearchwriter",
                        "parameter": {
                            "endpoint": "http://127.0.0.1:9200",
                            "accessId": "1",
                            "accessKey": "1",
                            "index": "tip",
                            "type": "_doc",
                            "cleanup": false,
                            "discovery": false,
                            "batchSize": 1000,
                            "splitter": ",",
                            "dynamic": true,
                            "column" : [
                                {"name": "id", "type": "id"},
                                {"name": "keyword", "type": "text", "analyzer": "888pic_pinyin"},
                                {"name": "scount", "type": "integer"},
                                {"name": "icount", "type": "integer"},
                                {"name": "created_at", "type": "date", "format": "yyyy-MM-dd HH:mm:ss"}
                            ]
                        }
                    }
                }
            ]
        }
    }
  • 相关阅读:
    团队开发-第一阶段冲刺-10
    团队开发-第一阶段冲刺-09
    Spring(三)
    第五周总结
    Spring(一)
    程序员修炼之道:从小工到专家阅读笔记1
    MyBatis(三)
    MyBatis(二)
    MyBatis
    第四周总结
  • 原文地址:https://www.cnblogs.com/Jeely/p/15242724.html
Copyright © 2011-2022 走看看