cms检索服务配置文档
cms检索服务开发测试环境做了迁移:
10.12.68.97,10.12.68.98,10.12.68.99 zk,kafka测试,开发共用
10.12.68.100 ,10.12.68.101 canal,canal-adapter测试
10.12.68.102,10.12.68.103,10.12.68.104 es测试
开发环境:
10.12.68.105 canal,canal-adapter开发
10.12.68.106 es开发
canal.mq.partitionsNum=1
{
"mappings": {
"CMS_CONTENT": {
"dynamic_templates": [{
"str_symbol": {
"match": "*es_symbol_*",
"match_mapping_type": "string",
"mapping": {
"type": "text",
"analyzer": "ik_max_word",
"fields": {
"raw": {
"type": "keyword"
}
}
}
}
},
{
"str_text": {
"match": "*es_text_*",
"match_mapping_type": "string",
"mapping": {
"type": "text",
"analyzer": "ik_max_word"
}
}
},
{
"str_integer": {
"match": "*es_integer_*",
"match_mapping_type": "string",
"mapping": {
"type": "long"
}
}
},
{
"str_float": {
"match": "*es_float_*",
"match_mapping_type": "string",
"mapping": {
"type": "doule"
}
}
},
{
"str_date": {
"match": "*es_date_*",
"match_mapping_type": "string",
"mapping": {
"type": "date",
"format": "yyyy-MM-dd HH:mm:ss.SSS"
}
}
},
{
"str_multi": {
"match": "*es_multi_*",
"match_mapping_type": "string",
"mapping": {
"type": "keyword"
}
}
},
{
"str_json": {
"match": "*es_json_*",
"match_mapping_type": "string",
"mapping": {
"type": "text"
}
}
}
],
"properties": {
"TID": {
"type": "long"
},
"CID": {
"type": "long"
},
"TENANT_ID": {
"type": "keyword"
},
"VERSION": {
"type": "long"
},
"SORT": {
"type": "long"
},
"STATUS": {
"type": "long"
},
"RCID": {
"type": "long"
},
"TOP": {
"type": "long"
},
"TYPE": {
"type": "long"
},
"CREATE_DATE": {
"type": "date",
"format": "yyyy-MM-dd'T'HH:mm:ss.SSSZ||epoch_millis"
},
"UPDATE_DATE": {
"type": "date",
"format": "yyyy-MM-dd'T'HH:mm:ss.SSSZ||epoch_millis"
},
"CONTENT": {
"type": "text",
"analyzer": "ik_max_word"
},
"DETAIL": {
"type": "text",
"analyzer": "ik_max_word"
},
"TEXT_CONTENT": {
"type": "text",
"analyzer": "ik_max_word"
},
"TEXT_DETAIL": {
"type": "text",
"analyzer": "ik_max_word"
},
"SYSTAG": {
"type": "long"
},
"SYSTAG_DATE": {
"type": "date",
"format": "yyyy-MM-dd'T'HH:mm:ss.SSSZ||epoch_millis"
}
}
}
}
}
(如果删除索引结构需要,重新优化设置)优化refresh时间,优化total_fields等:
初始化数据:
curl -XPOST 'http://10.12.68.105:8081/etl/es/cms_content_text_123456.yml'
按照时间同步(-1代表不匹配任务租户):
按照租户同步,如1600035223(日期要取一个较大的时间):