Skip to content

Instantly share code, notes, and snippets.

@kilaulena
Created May 19, 2011 11:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kilaulena/980536 to your computer and use it in GitHub Desktop.
Save kilaulena/980536 to your computer and use it in GitHub Desktop.
== NEW SPHINX SETUP ==
--- the dirty way ---
- installing latest sphinx from svn (2.0.2)
(because when we take the last stable version we get this error on ts:rebuild: https://gist.github.com/958819)
$ svn checkout http://sphinxsearch.googlecode.com/svn/trunk/ sphinxsearch-read-only
$ cd sphinxsearch-read-only
$ ./configure && make install
$ rake ts:config
$ rake ts:rebuild
- update riddle to latest version in gemfile like this:
gem 'riddle',:git => 'git://github.com/freelancing-god/riddle.git'
- make ts work with latest sphinx:
-- take latest ts from github:
$ gem 'thinking-sphinx', :require => 'thinking_sphinx', :git => 'git://github.com/freelancing-god/thinking-sphinx.git', :branch => 'rails3'
-- as long are these patches aren't there yet:
$ bundle update thinking-sphinx
$ bundle open thinking-sphinx
make ts recognize rails_root,
--- either by using def reset(custom_app_root=nil),
--- or by editing lib/thinking_sphinx/configuration.rb and commenting this line:
self.app_root = Sinatra::Application.root
$ rake ts:config
$ RACK_ENV=test RAILS_ENV=test rake ts:config
$ rake ts:rebuild
... fire test
How to fire the search from the console:
$ search -e -c ./config/development.sphinx.conf "@name 'berlin'"
@pat
Copy link

pat commented May 19, 2011

You don't need the :require for Riddle, because of the latest TS patch :)

@kilaulena
Copy link
Author

thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment