core3: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: QueryElevationComponent requires the schema to have a uniqueKeyField.第四步:复制stopwords_*.txt文件到D:\solr\core3\lang\目录下所有的D:\solr\solr-6.4.1\example\example-DIH\solr\db\conf\lang\stopwords_*.txt文件D:\solr\solr-6.4.1\example\example-DIH\solr\db\conf\lang\stopwords_el.txtD:\solr\solr-6.4.1\example\example-DIH\solr\db\conf\lang\stopwords_en.txtit;id;hy;lv;hu;pt;tr;de;hi;da;cz;th;sv; 等等txt文件,总共有31个第五步:复制以下文件到D:\solr\core3\lang\目录下D:\solr\solr-6.4.1\example\example-DIH\solr\db\conf\lang\contractions_it.txtD:\solr\solr-6.4.1\example\example-DIH\solr\db\conf\lang\contractions_ca.txtD:\solr\solr-6.4.1\example\example-DIH\solr\db\conf\lang\contractions_ga.txtD:\solr\solr-6.4.1\example\example-DIH\solr\db\conf\lang\contractions_fr.txtD:\solr\solr-6.4.1\example\example-DIH\solr\db\conf\lang\hyphenations_ga.txtD:\solr\solr-6.4.1\example\example-DIH\solr\db\conf\lang\stemdict_nl.txtD:\solr\solr-6.4.1\example\example-DIH\solr\db\conf\lang\stoptags_ja.txt第六步:复制elevate.xml到conf目录下D:\solr\solr-6.4.1\example\example-DIH\solr\db\conf\elevate.xml复制到D:\solr\core3\conf第七步:复制以下文件到D:\solr\core3\目录下D:\solr\solr-6.4.1\example\example-DIH\solr\db\conf\protwords.txtD:\solr\solr-6.4.1\example\example-DIH\solr\db\conf\synonyms.txtD:\solr\solr-6.4.1\example\example-DIH\solr\db\conf\stopwords.txtD:\solr\solr-6.4.1\example\example-DIH\solr\db\conf\currency.xml第八步:重启tomcat,访问solr,增加core增加一个core就相当于增加了一个数据库,solr本就支持数据库集群,支持以json格式存储数据点击Core Admin菜单,输入core信息,点击Add Core按钮:建立成功之后可以查看core3的位置信息:ps: 如果启动过程中有遇到*.lock文件而报错,那么删除该lock文件重新建立一遍既可成功。第九步:gui界面导入mysql数据库下拉框选择刚刚建立的core3,选中Dataimport菜单先检查core3加载的db-data-config.xml文件是否有效,点击Reload按钮校验,当出现信息No information available时则表示校验通过。初次导入选择full-import全量导入模式,点击Execute按钮执行数据导入,页面右边显示Indexing since则表示正在导入中,在导入过程中,点击Refresh Status则会显示详细的导入信息(Requests,Fetched,Skipped),如下图右图所示:如果导入失败,需要重来一遍,在选择勾选clean选项(清除之前所有导入索引)外,也可以考虑直接删除数据文件,地址在core3根目录下,有个data文件夹:D:\solr\solrhome\core3\data。