```ruby
Refinery::Core::Engine.routes.draw do

  # Frontend routes
  namespace :elasticsearch, :path => '' do
    match "/search", :to => 'search#show', :as => 'search'
  end

end
```

Use rails 4 route syntax
user
```ruby
Refinery::Core::Engine.routes.draw do

  # Frontend routes
  namespace :elasticsearch, :path => '' do
    get '/search', to: 'search#show', as: 'search'
  end

end
```
assistant