1、先创建索引
PUT file_info_sps_demo1
{
"settings": {
"index": {
"number_of_shards": "1",
"blocks": {
"read_only_allow_delete": "true"
},
"max_result_window": "500000",
"number_of_replicas": "1"
}
},
"mappings" : {
"properties": {
"contentList": {
"type": "nested",
"properties": {
"checked": {
"type": "boolean"
},
"content": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
},
"analyzer": "ik_max_word"
},
"contentIndex": {
"type": "long"
},
"contentLevel": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"contentTrans": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
},
"analyzer": "ik_max_word"
},
"contentType": {
"type": "long"
},
"disabled": {
"type": "boolean"
}

本文介绍了在Elasticsearch中创建索引,包括设置参数、数据迁移过程,以及如何监控任务进度、管理别名、解除只读限制和删除旧索引的操作。
最低0.47元/天 解锁文章
1570

被折叠的 条评论
为什么被折叠?



