Reputation: 53
I am using solrv5.0 and pysolr but I get the following traceback when I run a python script:
File "site-packages/pysolr.py", line 322, in _send_request
raise SolrError(error_message)
pysolr.SolrError: [Reason: Error 404 Not Found
For the script lines about pySolr, I only have:
solr = pysolr.Solr('http://localhost:8983/solr/', timeout=10)
solr.add([dict])
where dict is a python dictionnary. When I comment # solr.add, I haven't got any errors. So I think I get the connection but I can't update... Why? Thanks for your help.
Upvotes: 2
Views: 1892
Reputation: 420
I needed to specify my solr core to get this command to work.
This:
solr = pysolr.Solr('http://localhost:8983/solr/', timeout=10)
Should be:
solr = pysolr.Solr('http://localhost:8983/solr/your_core_name', timeout=10)
Upvotes: 2