Distributed indexes and/or access to configuration file?

sfeley's Avatar


21 Sep, 2011 05:28 PM

I've been working on moving a legacy application into Heroku, and it's using a custom /etc/sphinx.conf file that adds some indexes in addition to the ones generated by Thinking Sphinx. These are primarily distributed indexes combining the others for convenience; e.g., this one for the main layout's search box:

index front
  type = distributed
  local = good_word_core
  local = blog_core
  local = video_idea_core
  local = text_idea_core
  local = idea_feed_item_core
  local = series_core
  local = topic_core
  local = user_core

Never mind whether this is a good idea. My hope is that I won't have to rebuild search for this app any time soon. I can't find anything in the Thinking Sphinx or Flying Sphinx sites on how to generate distributed indexes (or any non-model-based indexes), nor how to add custom configuration.

So I hope you can help. Is there any way to achieve an effect similar to the above index block in Flying Sphinx? Or will I have to remove the add-on and maintain a separate search server?

Thanks very much for your time.

  1. Support Staff 1 Posted by Pat Allan on 21 Sep, 2011 11:34 PM

    Pat Allan's Avatar

    Hi Stephen

    Technically, what you want to do is definitely possible - although it won't be super easy. The flying-sphinx gem manages all the requests to the API, including uploading a configuration file - so, if you look at the source for that, you can upload your own file containing whatever you like.

    This means you'll need to manage a few things yourself:

    • The contents of that file - particularly, file paths.
    • The code that uploads it - re-use what you can from the gem.
    • A rake task for uploading and indexing, as the default one will overwrite with a standard Thinking Sphinx-built file.


    Happy to help where I can with this.



Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac