Re-introduce keyword search
authorMarius Mathiesen <marius@gitorious.org>
Wed, 28 Nov 2012 10:31:16 +0000 (11:31 +0100)
committerMarius Mathiesen <marius@gitorious.org>
Wed, 28 Nov 2012 10:31:16 +0000 (11:31 +0100)
commit8ec09c5ec87faa87f563148539299ab830184bea
tree871fddcfea77070982eccd1b00d950846be59bc5
parent46e7c9dd1e32d844ad5ed33faf17617ea9228ef3
Re-introduce keyword search

Thinking sphinx doesn't support Ultrasphinx' "key: value" searching,
but rather leans on Sphinx itself: "@key value".

This requires using :match_mode => :extended when searching, which is
the main change introduced by this commit. Also update func test and
search suggestions in UI.
app/controllers/searches_controller.rb
app/views/searches/show.html.erb
test/functional/searches_controller_test.rb