I've inhereted a rails app that uses Solr, which is new to me. All I want to do for now is to get the site running locally. I've installed solar, but when I try to get it running on the app, I have problems. I can run
rake sunspot:solr:start
without getting any errors, but when I try to reindex everything, like this:
rake sunspot:solr:reindex
I get the following error:
Execute sunspot:reindex
rake aborted!
Solr Response: undefined field type
I gather from this post that it's because of the schema.xml file. And that I have to copy that file.
I've got a schema.xml in my app's root directory and I've got another in the example directory in /usr/local/Cellar/solr/3.6.1/libexec/. When I did the rake
rake sunspot:solr:start
command, schema.xml was copied into my app's solr directory. Is there more copying that needs happen? I'm not really sure how to fix this issue.
Put schema.xml
in conf
directory, under your Solr root.