Commit ca469de250e6e12e81459545aeabd51ca7b695f1
1 parent
fa30c6b9
Exists in
elasticsearch_api
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] |