Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Solr returned an error #404 Not Found for url http://localhost:8983/solr/update?commit=true

Tags:

solr

The error above occurs when I imported xml data into my Solr (v4.3.0), and I just changed my collection name, while nothing different from example file.

Any advice?

Thanks in advance.

like image 619
ray6080 Avatar asked Jun 05 '13 10:06

ray6080


3 Answers

try to access the following URL : IP:PORT/solr/NAME_OF_YOUR_CORE/update?commit=true

like image 106
Quentin Avatar answered Sep 22 '22 15:09

Quentin


I am using Solr 4.2.0 with Rails and no collections were setup by default. But 3 cores were setup by default (default, development, test). So I had to set :url in my solr config for sunspot to include the core name in the path like so...

http://localhost:8982/solr/development/update?commit=true

Pay attention that you are on the correct port (8981, 8982, 8983)

development:
  solr:
    hostname: localhost
    port: 8982
    log_level: INFO
    path: /solr
    url: http://localhost:8982/solr/development
like image 21
Natus Drew Avatar answered Sep 25 '22 15:09

Natus Drew


The name of the core is case-sensitive, make sure to write it correctly. It was the issue on my part.

So if your core's name is MyCore the url needs to be:

http://localhost:8983/solr/MyCore/update

and not, for example, http://localhost:8983/solr/mycore/update.

like image 20
nonzaprej Avatar answered Sep 22 '22 15:09

nonzaprej