首页 > 应用开发 > Java > ElasticSearch安装中文分词插件IK

{
"tokens" : [ {
"token" : "美利坚",
"start_offset" : 0,
"end_offset" : 3,
"type" : "CN_WORD",
"position" : 0
}, {
"token" : "坚",
"start_offset" : 2,
"end_offset" : 3,
"type" : "CN_WORD",
"position" : 1
}, {
"token" : "人类",
"start_offset" : 3,
"end_offset" : 5,
"type" : "CN_WORD",
"position" : 2
}, {
"token" : "希望",
"start_offset" : 6,
"end_offset" : 8,
"type" : "CN_WORD",
"position" : 3
}, {
"token" : "正义",
"start_offset" : 8,
"end_offset" : 10,
"type" : "CN_WORD",
"position" : 4
}, {
"token" : "化身",
"start_offset" : 11,
"end_offset" : 13,
"type" : "CN_WORD",
"position" : 5
}, {
"token" : "邪恶",
"start_offset" : 13,
"end_offset" : 15,
"type" : "CN_WORD",
"position" : 6
}, {
"token" : "邪",
"start_offset" : 13,
"end_offset" : 14,
"type" : "CN_WORD",
"position" : 7
}, {
"token" : "恶",
"start_offset" : 14,
"end_offset" : 15,
"type" : "CN_WORD",
"position" : 8
}, {
"token" : "克星",
"start_offset" : 16,
"end_offset" : 18,
"type" : "CN_WORD",
"position" : 9
}, {
"token" : "克",
"start_offset" : 16,
"end_offset" : 17,
"type" : "CN_WORD",
"position" : 10
}, {
"token" : "星",
"start_offset" : 17,
"end_offset" : 18,
"type" : "CN_CHAR",
"position" : 11
} ]
}
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29254281/viewspace-2095945/ ,如需转载,请注明出处,否则将追究法律责任。