SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Guru downtroden's Avatar
    Join Date
    Dec 2004
    Location
    illinois
    Posts
    974
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Sunspot won't index mountable engines

    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?
    your brain reacts in the same way whether you are
    looking at something or thinking about it...

  2. #2
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,109
    Mentioned
    28 Post(s)
    Tagged
    2 Thread(s)
    Hi,

    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?

  3. #3
    SitePoint Guru downtroden's Avatar
    Join Date
    Dec 2004
    Location
    illinois
    Posts
    974
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by markbrown4 View Post
    Hi,

    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?
    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
    Yes.
    your brain reacts in the same way whether you are
    looking at something or thinking about it...

  4. #4
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,109
    Mentioned
    28 Post(s)
    Tagged
    2 Thread(s)
    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.
    Code:
    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.
    http://rubygems.org/gems/sunspot


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •