diff options
author | Alex Legler <alex@a3li.li> | 2011-08-30 15:05:11 +0200 |
---|---|---|
committer | Alex Legler <alex@a3li.li> | 2011-08-30 15:05:11 +0200 |
commit | 236399098d337f38727745b09daafba2d6130769 (patch) | |
tree | 8efcb0c9a059a7bcaeac174ae9b36ba0f6fce202 /config | |
parent | Replacing the (hopefully) last instances of #find with #where (diff) | |
download | glsamaker-236399098d337f38727745b09daafba2d6130769.tar.gz glsamaker-236399098d337f38727745b09daafba2d6130769.tar.bz2 glsamaker-236399098d337f38727745b09daafba2d6130769.zip |
Adding basic search functionality with ThinkingSphinx
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 2 | ||||
-rw-r--r-- | config/sphinx.yml | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index 00807da..6c1f882 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -5,6 +5,8 @@ Glsamaker::Application.routes.draw do match 'cve/list.:format' => 'cve#list', :as => :cve + match 'search/results' => 'search#results', :as => :search + match 'admin' => 'admin/index#index' resources :glsas, :controller => 'glsa' do diff --git a/config/sphinx.yml b/config/sphinx.yml new file mode 100644 index 0000000..d866a5a --- /dev/null +++ b/config/sphinx.yml @@ -0,0 +1,9 @@ +development: + enable_star: true + min_infix_len: 3 +test: + enable_star: true + min_infix_len: 3 +production: + enable_star: true + min_infix_len: 3
\ No newline at end of file |