Replace Ultrasphinx with ThinkingSphinx
authorMarius Mathiesen <marius@gitorious.org>
Mon, 29 Oct 2012 10:15:49 +0000 (11:15 +0100)
committerMarius Mathiesen <marius@gitorious.org>
Mon, 29 Oct 2012 10:15:49 +0000 (11:15 +0100)
commitb292f36f6d507833ed4cc262a27f6e4a5a4b979e
tree8b16fb4c787aa23258ae0a9b34be618a6e6e0407
parent72518e18e14979f3dc9fa3aca00f0f65c2f94586
Replace Ultrasphinx with ThinkingSphinx

The Ultrasphinx plugin has been abandoned, so we're switching to
ThinkingSphinx instead. The good news is that we're still using the
same search engine, and that all the internal indexing/searching logic
has been preserved through the rewrite.

However, if you maintain your own server, you will need to make a few
changes.  The ultrasphinx: rake tasks no longer exist, but have been
replaced by thinking_sphinx tasks:

- rake thinking_sphinx:config generates the Sphinx configuration file
- rake thinking_sphinx:index indexes the Sphinx data rake
- thinking_sphinx:rebuild stops, reindexes and starts Sphinx rake
- thinking_sphinx:reindex reindexes without re-generating a
  configuration file
- thinking_sphinx:stop stops Sphinx
- thinking_sphinx:start starts Sphinx
- thinking_sphinx:running_start stops Sphinx if it's running and then starts
  it
207 files changed:
Gemfile
Gemfile.lock
Rakefile
app/controllers/searches_controller.rb
app/models/comment.rb
app/models/merge_request.rb
app/models/project.rb
app/models/repository.rb
app/views/searches/show.html.erb
config/initializers/search.rb [deleted file]
config/initializers/ultrasphinx.rb [deleted file]
lib/gitorious/search.rb [deleted file]
lib/gitorious/search/sunspot/adapter.rb [deleted file]
lib/gitorious/search/ultrasphinx/adapter.rb [deleted file]
lib/gitorious/search/ultrasphinx/search_helper.rb [deleted file]
test/functional/searches_controller_test.rb
test/unit/lib/gitorious/search_test.rb [deleted file]
vendor/plugins/ultrasphinx/CHANGELOG [deleted file]
vendor/plugins/ultrasphinx/DEPLOYMENT_NOTES [deleted file]
vendor/plugins/ultrasphinx/LICENSE [deleted file]
vendor/plugins/ultrasphinx/Manifest [deleted file]
vendor/plugins/ultrasphinx/RAKE_TASKS [deleted file]
vendor/plugins/ultrasphinx/README [deleted file]
vendor/plugins/ultrasphinx/Rakefile [deleted file]
vendor/plugins/ultrasphinx/TODO [deleted file]
vendor/plugins/ultrasphinx/examples/ap.multi [deleted file]
vendor/plugins/ultrasphinx/examples/default.base [deleted file]
vendor/plugins/ultrasphinx/init.rb [deleted file]
vendor/plugins/ultrasphinx/lib/ultrasphinx.rb [deleted file]
vendor/plugins/ultrasphinx/lib/ultrasphinx/associations.rb [deleted file]
vendor/plugins/ultrasphinx/lib/ultrasphinx/autoload.rb [deleted file]
vendor/plugins/ultrasphinx/lib/ultrasphinx/configure.rb [deleted file]
vendor/plugins/ultrasphinx/lib/ultrasphinx/core_extensions.rb [deleted file]
vendor/plugins/ultrasphinx/lib/ultrasphinx/fields.rb [deleted file]
vendor/plugins/ultrasphinx/lib/ultrasphinx/is_indexed.rb [deleted file]
vendor/plugins/ultrasphinx/lib/ultrasphinx/postgresql/concat_ws.sql [deleted file]
vendor/plugins/ultrasphinx/lib/ultrasphinx/postgresql/crc32.sql [deleted file]
vendor/plugins/ultrasphinx/lib/ultrasphinx/postgresql/group_concat.sql [deleted file]
vendor/plugins/ultrasphinx/lib/ultrasphinx/postgresql/hex_to_int.sql [deleted file]
vendor/plugins/ultrasphinx/lib/ultrasphinx/postgresql/language.sql [deleted file]
vendor/plugins/ultrasphinx/lib/ultrasphinx/postgresql/unix_timestamp.sql [deleted file]
vendor/plugins/ultrasphinx/lib/ultrasphinx/search.rb [deleted file]
vendor/plugins/ultrasphinx/lib/ultrasphinx/search/internals.rb [deleted file]
vendor/plugins/ultrasphinx/lib/ultrasphinx/search/parser.rb [deleted file]
vendor/plugins/ultrasphinx/lib/ultrasphinx/spell.rb [deleted file]
vendor/plugins/ultrasphinx/lib/ultrasphinx/ultrasphinx.rb [deleted file]
vendor/plugins/ultrasphinx/tasks/ultrasphinx.rake [deleted file]
vendor/plugins/ultrasphinx/test/config/ultrasphinx/test.base [deleted symlink]
vendor/plugins/ultrasphinx/test/integration/app/README [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/Rakefile [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/controllers/addresses_controller.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/controllers/application.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/controllers/sellers_controller.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/controllers/states_controller.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/controllers/users_controller.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/helpers/addresses_helper.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/helpers/application_helper.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/helpers/sellers_helper.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/helpers/states_helper.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/helpers/users_helper.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/models/geo/address.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/models/geo/country.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/models/geo/state.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/models/person/user.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/models/seller.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/views/addresses/edit.html.erb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/views/addresses/index.html.erb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/views/addresses/new.html.erb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/views/addresses/show.html.erb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/views/layouts/addresses.html.erb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/views/layouts/sellers.html.erb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/views/layouts/states.html.erb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/views/layouts/users.html.erb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/views/sellers/edit.html.erb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/views/sellers/index.html.erb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/views/sellers/new.html.erb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/views/sellers/show.html.erb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/views/states/edit.html.erb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/views/states/index.html.erb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/views/states/new.html.erb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/views/states/show.html.erb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/views/users/edit.html.erb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/views/users/index.html.erb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/views/users/new.html.erb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/app/views/users/show.html.erb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/config/boot.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/config/database.yml [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/config/environment.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/config/environments/development.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/config/environments/production.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/config/environments/test.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/config/locomotive.yml [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/config/routes.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/config/ultrasphinx/default.base [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/config/ultrasphinx/development.conf.canonical [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/db/migrate/001_create_users.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/db/migrate/002_create_sellers.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/db/migrate/003_create_addresses.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/db/migrate/004_create_states.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/db/migrate/005_add_capitalization_to_seller.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/db/migrate/006_add_deleted_to_user.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/db/migrate/007_add_lat_and_long_to_address.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/db/migrate/008_add_mission_statement_to_seller.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/db/migrate/009_create_countries.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/doc/README_FOR_APP [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/public/.htaccess [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/public/404.html [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/public/500.html [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/public/dispatch.cgi [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/public/dispatch.fcgi [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/public/dispatch.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/public/favicon.ico [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/public/images/rails.png [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/public/index.html [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/public/javascripts/application.js [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/public/javascripts/controls.js [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/public/javascripts/dragdrop.js [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/public/javascripts/effects.js [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/public/javascripts/prototype.js [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/public/robots.txt [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/public/stylesheets/scaffold.css [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/script/about [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/script/breakpointer [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/script/console [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/script/destroy [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/script/generate [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/script/performance/benchmarker [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/script/performance/profiler [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/script/plugin [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/script/process/inspector [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/script/process/reaper [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/script/process/spawner [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/script/runner [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/script/server [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/test/fixtures/addresses.yml [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/test/fixtures/countries.yml [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/test/fixtures/sellers.yml [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/test/fixtures/states.yml [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/test/fixtures/users.yml [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/test/functional/addresses_controller_test.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/test/functional/sellers_controller_test.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/test/functional/states_controller_test.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/test/functional/users_controller_test.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/test/test_helper.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/test/unit/address_test.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/test/unit/country_test.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/test/unit/seller_test.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/test/unit/state_test.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/app/test/unit/user_test.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/configure_test.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/delta_test.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/search_test.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/server_test.rb [deleted file]
vendor/plugins/ultrasphinx/test/integration/spell_test.rb [deleted file]
vendor/plugins/ultrasphinx/test/profile/benchmark.rb [deleted file]
vendor/plugins/ultrasphinx/test/setup.rb [deleted file]
vendor/plugins/ultrasphinx/test/teardown.rb [deleted file]
vendor/plugins/ultrasphinx/test/test_all.rb [deleted file]
vendor/plugins/ultrasphinx/test/test_helper.rb [deleted file]
vendor/plugins/ultrasphinx/test/ts.multi [deleted file]
vendor/plugins/ultrasphinx/test/unit/parser_test.rb [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/MIT-LICENCE [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/README [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/Rakefile [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/lib/riddle.rb [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/lib/riddle/client.rb [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/lib/riddle/client/filter.rb [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/lib/riddle/client/message.rb [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/lib/riddle/client/response.rb [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/fixtures/data/anchor.bin [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/fixtures/data/any.bin [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/fixtures/data/boolean.bin [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/fixtures/data/distinct.bin [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/fixtures/data/field_weights.bin [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/fixtures/data/filter.bin [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/fixtures/data/filter_array.bin [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/fixtures/data/filter_array_exclude.bin [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/fixtures/data/filter_floats.bin [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/fixtures/data/filter_floats_exclude.bin [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/fixtures/data/filter_floats_range.bin [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/fixtures/data/filter_range.bin [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/fixtures/data/filter_range_exclude.bin [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/fixtures/data/group.bin [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/fixtures/data/index.bin [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/fixtures/data/index_weights.bin [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/fixtures/data/phrase.bin [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/fixtures/data/rank_mode.bin [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/fixtures/data/simple.bin [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/fixtures/data/sort.bin [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/fixtures/data/update_simple.bin [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/fixtures/data/weights.bin [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/fixtures/data_generator.php [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/fixtures/sphinx/configuration.erb [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/fixtures/sphinxapi.php [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/fixtures/sql/conf.example.yml [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/fixtures/sql/data.sql [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/fixtures/sql/structure.sql [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/functional/excerpt_spec.rb [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/functional/search_spec.rb [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/functional/update_spec.rb [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/spec_helper.rb [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/sphinx_helper.rb [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/unit/client_spec.rb [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/unit/filter_spec.rb [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/unit/message_spec.rb [deleted file]
vendor/plugins/ultrasphinx/vendor/riddle/spec/unit/response_spec.rb [deleted file]
vendor/plugins/ultrasphinx/vendor/will_paginate/LICENSE [deleted file]