`
sugar_wang
  • 浏览: 11223 次
  • 性别: Icon_minigender_2
  • 来自: 济南
文章分类
社区版块
存档分类
最新评论

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

 
阅读更多

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

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正常启动了

 

 

 

 

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics