Distributed indexes and/or access to configuration file?
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.
Support Staff 2 Posted by Pat Allan on 21 Sep, 2011 11:34 PM
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:
https://github.com/flying-sphinx/flying-sphinx
https://github.com/flying-sphinx/flying-sphinx/blob/master/lib/flyi...
Happy to help where I can with this.
Cheers
Pat