downtroden — 2012-08-05T12:38:13-04:00 — #1
I've got sunspot running on the parent app. When I issue the reindex command, it's only indexing the models on the parent app, not the mountable engines that have the searchable block in their models.
Can't seem to find anything on google when it comes to this. Anyone out there have some words of wisdom?
markbrown4 — 2012-08-06T18:31:13-04:00 — #2
I've use Solr/sunspot before but I'm familiar with mountable engines.
What do you mean by the parent app?
Do you have one db server and one solr server?
Are they all running on the same server as your code?
downtroden — 2012-08-06T23:28:02-04:00 — #3
The parent app = the application that the mountable engine is mounted to (root_app).
DB server (software) and Solr server (software) are running on the same machine
markbrown4 — 2012-08-08T19:33:44-04:00 — #4
Sorry, I haven't used mountable engines before so I might not be much help with this one.
Something that might be worth trying is to write a custom rake task to index just the models that are in your engine.
rake sunspot:solr:reindex[EngineNamespace::Thingo, EngineNamespace::ThatOtherThing]
The other thing I've had success with in the past is to contact the owners of the gem with your question on Twitter.
mittineague — 2014-09-18T21:02:44-04:00 — #5
This topic is now archived. It is frozen and cannot be changed in any way.