Support Staff2 Posted by Pat Allan on 07 Nov, 2011 10:47 AM
At this point, it doesn't work out of the box. It should be possible to adapt the flying-sphinx gem to work with mongoid-sphinx (it currently expects thinking-sphinx) - although it's a bit different because mongoid-sphinx probably uses XML feeds instead of SQL sources to get the data into Sphinx.
The flying-sphinx code isn't particularly large, though there's a few tricky pieces - namely, an SSH reverse port forward to allow access to Heroku database servers. Not sure of the exact setup for a Mongo equivalent, but certainly happy to provide advice and perhaps work on it with you. Right now I'm about to jump on a few long flights, so I won't be able to really investigate until the end of this week - but let me know if you want to pursue this further. In the meantime, you're certainly welcome to have a look through the flying-sphinx code:
5 Posted by Brian D. Armstrong on 09 Nov, 2011 01:14 AM
MongoLab on Heroku. With the Mongoid gem. Would be awesome.
In case others come across this, I was able to hack something together with
the https://github.com/jugyo/sunspot_mongoid gem and the Websolr add-on for
heroku. So it's not like there are zero options, but I prefer Sphinx so
would be cool to see that as an option as well. Just wanted to add that in
case others were stuck.
6 Posted by Marshall Alexander on 29 Feb, 2012 09:00 PM
Was there any update to this? We'll be moving a mongosphinx app
to heroku soon and would love to find a sphinx hosting company that
we could use (otherwise I'll probably spin up an EC2 instance just
for sphinx until one becomes availale)..
PS: This particular app uses mongohq and mongoid, but we use
mongolab elsewhere and would be up for switching if somehow it made
Support Staff7 Posted by Pat Allan on 29 Feb, 2012 11:17 PM
I'm keen to support Mongo, but I've not used it at all. Just reading through the mongosphinx README, seems it's all pretty manual. The main difficulty will be sending the indexing rake task output through to Sphinx on the Flying Sphinx server.
Are you using a specific fork of mongosphinx? The official repo/gem hasn't been updated in a few years.