Solr错误:由于solr.ICUCollat​​ionField导致无法创建核心[mycore] [英] Solr Error: Unable to create core [mycore] Caused by solr.ICUCollationField

查看:88
本文介绍了Solr错误:由于solr.ICUCollat​​ionField导致无法创建核心[mycore]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个solr核心,我正在将drupalvm与流浪汉和虚拟盒子一起使用。

I am trying to create a solr core, I am using drupalvm with vagrant and virtual box.

使用以下命令设置solr时:

When setting up solr with this command:

sudo su - solr -c "/opt/solr/bin/solr create -c m4m -d /tmp/search_api_solr/solr-conf/7.x/"

我收到此错误:

INFO  - 2018-11-05 19:21:45.804; org.apache.solr.util.configuration.SSLCredentialProviderFactory; Processing SSL Credential Provider chain: env;sysprop

ERROR: Error CREATEing SolrCore 'mycore': Unable to create core [mycore] Caused by: solr.ICUCollationField

创建一个没有指定 -d< confdir> 选项的内核是成功的,但是给了我一些Solr仪表板和Drupal UI中确实存在奇怪的错误,研究表明这与内核损坏有关。

Creating a core without specifying the -d <confdir> option is successful but gives me some really weird errors in the solr dashboard and Drupal UI which research indicates has something to do with a corrupted core.

对于我为什么会出现此错误的任何帮助,我们将不胜感激。 。其他使用相同游民安装的开发人员正在正常运行。

Any help with why I am getting this error would be much appreciated. Other developers using the same vagrant installation is running without issue.

推荐答案

如果创建没有config目录的核心,solr将使用这是默认配置。
反过来,将没有任何drupal所需的字段定义,依此类推。
如果您对solr的结构有所了解,并且使用solr>版本7,则需要执行以下操作:

If you create the core without the config directory, solr will use it's default configurations. Which in turn, will have none of the drupal needed field definitions, and so forth. What you need to do, if you know a little bit about the solr's structure, and if you use solr > version 7 is:



  • 转到您的Solr安装位置

  • cd / PATH_TO_SOLR / server / solr-webapp / webapp / WEB-INF / lib

  • 将所有jars从analysis-extras文件夹复制到您的wEB-INF / lib文件夹

  • cp /PATH_TO_SOLR/contrib/analysis-extras/lib/*.jar。 /

  • 以通常的方式重新启动solr,并指定-d配置目录。这很重要。

  • go to where your solr installation is
  • cd /PATH_TO_SOLR/server/solr-webapp/webapp/WEB-INF/lib
  • Copy all jars from the analysis-extras folder to your wEB-INF/lib folder
  • cp /PATH_TO_SOLR/contrib/analysis-extras/lib/*.jar ./
  • restart solr the way you normally do, specifying your -d config directory. That's important.

希望这会有所帮助。
或...
节省麻烦,让专业人士通过SaaS(例如 https://opensolr.com
您可以单击1次来创建solr索引,然后需要再单击2次以上传配置文件,然后就可以完成。

Hope this helps. OR... Save your hassle and let the pros handle all this for you with a SaaS such as the likes of https://opensolr.com You can create your solr index with 1 click, and you need 2 more clicks to upload your config files and you're done.

这篇关于Solr错误:由于solr.ICUCollat​​ionField导致无法创建核心[mycore]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆