rails metasearch port to laravel