Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTP ERROR: 404 missing core name in path with solr

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?

like image 473
kshama Avatar asked Feb 06 '10 12:02

kshama


4 Answers

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.

like image 170
H6. Avatar answered Oct 21 '22 20:10

H6.


You probably have a multi-core setup and haven't included the core in the URL. e.g. instead of requesting http://localhost:8983/solr/select/?q=*%3A* you have to request http://localhost:8983/solr/MyCoreName/select/?q=*%3A*

like image 38
Mauricio Scheffer Avatar answered Oct 21 '22 22:10

Mauricio Scheffer


If you just browse to http://localhost:8983/solr/ you will see all cores listed (at least that did it for me).

like image 20
Jeroen Avatar answered Oct 21 '22 22:10

Jeroen


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.

like image 28
tarequeh Avatar answered Oct 21 '22 21:10

tarequeh