HTTP ERROR: 404 missing core name in path with sol

2019-01-14 10:28发布

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 missing core name in path

This is in Jetty.

What shall I do, in order to solve this?

10条回答
beautiful°
2楼-- · 2019-01-14 11:11

Just to keep a note here, if you deleted all files from your solr/data/index directory but left the directory alone and started getting this error, then stop solr, delete the solr/data/index directory and restart. Solr will create the index directory again. For some reason solr will give you this error if it finds the index directory but not the initial stuff it expects in there.

查看更多
Explosion°爆炸
3楼-- · 2019-01-14 11:11

In my case it was happening due to versioning.

Earlier I was using solr 1.4.1. It was running fine. Then I installed solr 3.6.1 and was getting this error.

A folder named solr is there in the tomcat/webapps directory where you generally put the solr.war file.

  • Delete this solr folder
  • Start tomcat

=> Problem is gone.

查看更多
霸刀☆藐视天下
4楼-- · 2019-01-14 11:17

Hi I've got exactly this error when my solrconfig.xml was malformed (missing closing tag element ). It was for solr 3.5.0 Once I fixed the solrconfig the error went away.

查看更多
Summer. ? 凉城
5楼-- · 2019-01-14 11:18

I've gotten the same error:

HTTP ERROR: 404 missing core name in path

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.

查看更多
登录 后发表回答