Reputation: 256
I don't know where to put this, I can move it to Stack Overflow if you want.
I'm new at Sunspot and Rails, and I have use it before with Solr 4.X running over Tomcat7 without issues, I was happy. Now, I'm deploying a new app, and I want to use Solr 5.2 which is the latest, this one doesn't run on top of Tomcat like his predecessors, it's now a nice standalone service running on top of a jetty instance.
So, I followed this guid to install it https://www.digitalocean.com/community/tutorials/how-to-install-solr-5-2-1-on-ubuntu-14-04
I have even creating a collection and stuff, but when I do rake sunspot:reindex
it returned the following error:
RSolr::Error::Http: RSolr::Error::Http - 400 Bad Request Error: {'responseHeader'=>{'status'=>400,'QTime'=>127},'error'=>{'msg'=>'undefined field type','code'=>400}} URI: http://localhost:8983/solr/screencap-dev/update?wt=ruby Request Headers: {"Content-Type"=>"text/xml"} Request Data: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><delete><query>type:[MODEL NAME]</query></delete>"
That [MODEL NAME] is the name of the model I'm indexing.
I can't make it work, so I'm using the sunspot_solr version, I even tried to move every config file over to my Solr 5.2 without success, Server errors and stuff.
Did anyone did this already?
UPDATE
I have tried to copy the collection files from sunspot_solr (Solr 5.0.0) to my Solr Service (Solr 5.2.0), I got it to load the files, but:
Error CREATEing SolrCore 'screencap-dev': Unable to create core [screencap-dev] Caused by: solr.DateField
Obviously Sunspot collections files are not compatible.
Upvotes: 1
Views: 650
Reputation: 5144
Your solr instance is broken.
These are the terminal commands you should follow to solve your problems:
Upvotes: 1