- nebula 版本:2.5
REBUILD FULLTEXT INDEX 一直显示running,后台日志没显示有错误,但是似乎没在跑索引啊,等了1小时多了ES的服务器磁盘df -h一点变化都没有。。。。。这是咋回事
(root@nebula) [movie]> show job 43
+----------------+--------------------------+-----------+----------------------------+----------------------------+
| Job Id(TaskId) | Command(Dest) | Status | Start Time | Stop Time |
+----------------+--------------------------+-----------+----------------------------+----------------------------+
| 43 | "REBUILD_FULLTEXT_INDEX" | "RUNNING" | 2021-10-18T10:57:14.000000 | 1970-01-01T00:00:00.000000 |
+----------------+--------------------------+-----------+----------------------------+----------------------------+
| 0 | "172.x.x.132" | "RUNNING" | 2021-10-18T10:57:14.000000 | 1970-01-01T00:00:00.000000 |
+----------------+--------------------------+-----------+----------------------------+----------------------------+
Got 2 rows (time spent 1193/12692 us)
Mon, 18 Oct 2021 20:19:52 CST
我的创建索引的语句是
(root@nebula) [movie]> CREATE FULLTEXT tag index nebula_album on album(name)
Execution succeeded (time spent 303388/601373 us)
其中,album的唯一id为string类型,全文索引的属性name为string类型
ES模板用的默认的
curl -H "Content-Type: application/json; charset=utf-8" -XPUT http://127.0.0.1:9200/_template/nebula_index_template -d '
{
"template": "nebula*",
"settings": {
"index": {
"number_of_shards": 3,
"number_of_replicas": 1
}
},
"mappings": {
"properties" : {
"tag_id" : { "type" : "long" },
"column_id" : { "type" : "text" },
"value" :{ "type" : "keyword"}
}
}
}'