Created
May 19, 2011 11:03
-
-
Save kilaulena/980536 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
== 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'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks :)