Commit a7661c9e34245cdd9c0eceed5ca3280816095251
Committed by
Macartur Sousa
1 parent
440104d7
Exists in
elasticsearch_view
redirect index -> search action
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
plugins/elasticsearch/controllers/elasticsearch_plugin_controller.rb
| 1 | class ElasticsearchPluginController < ApplicationController | 1 | class ElasticsearchPluginController < ApplicationController |
| 2 | no_design_blocks | 2 | no_design_blocks |
| 3 | 3 | ||
| 4 | + def index | ||
| 5 | + search() | ||
| 6 | + render :action => 'search' | ||
| 7 | + end | ||
| 8 | + | ||
| 4 | def search | 9 | def search |
| 5 | @results = [] | 10 | @results = [] |
| 6 | @query = params[:q] | 11 | @query = params[:q] |