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

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

end

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

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

end

Use rails 4 route syntax
Use rails 4 route syntax
