HTTP 错误:404 缺少 solr 路径中的核心名称 [英] HTTP ERROR: 404 missing core name in path with solr

查看:19
本文介绍了HTTP 错误:404 缺少 solr 路径中的核心名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Solr 的新手,在 ubuntu 8.10 中安装它之后,当我尝试使用 exampledocs 来索引时,按照这个 link,我收到这个错误:

I am new to Solr, after installing it in ubuntu 8.10, when I was trying exampledocs to index , as per this link, I got this error:

HTTP ERROR: 404 路径中缺少核心名称

HTTP ERROR: 404 missing core name in path

这是在码头.

我该怎么做才能解决这个问题?

What shall I do, in order to solve this?

推荐答案

我遇到了同样的错误:

HTTP 错误:404 中缺少核心名称路径

HTTP ERROR: 404 missing core name in path

就我而言,我忘记在 WEB-INF/web.xml 文件中设置 solr/home

In my case I've forgotten so set the solr/home value in the WEB-INF/web.xml file

<env-entry>
   <env-entry-name>solr/home</env-entry-name>
   <env-entry-value>/put/your/solr/home/here</env-entry-value>
   <env-entry-type>java.lang.String</env-entry-type>
</env-entry>

在我添加上述代码并重新启动服务器后,错误消失了.

After I've added the above code and restarted the server, the error was gone.

这篇关于HTTP 错误:404 缺少 solr 路径中的核心名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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