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.
try to access the following URL : IP:PORT/solr/NAME_OF_YOUR_CORE/update?commit=true
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
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With