solr7.4 安装、配置mysql、分词器

论坛 期权论坛 脚本     
匿名网站用户   2020-12-21 11:19   2154   0

安装启动以及配置分词借鉴:

http://www.cnblogs.com/tony-zt/p/9260017.html

配置mysql链接借鉴:

http://www.cnblogs.com/yanfeiLiu/p/9272644.html

在此基础上配置自己的数据库表字段等

问题:solr配置mysql数据库后,主键类型是int,启动报错

报错内容:

_root_ field must be defined using the exact same fieldType as the uniqueKey filed(**) ...

本以为是solr的配置问题,solr支持string的主键,结果检查过后发现并无问题,最后是将managed-schema里的

<field name="_root_" type="string" indexed="true" stored="false"/> 改为type="int"

重启solr正常启动了

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:1136255
帖子:227251
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP