    # File lib/yard/server/commands/search_command.rb, line 12
            def run
              Registry.load_all
              self.query = request.query['q']
              redirect("/#{adapter.router.docs_prefix}/#{single_library ? library : ''}") if query.nil? || query =~ /\A\s*\Z/
              if found = Registry.at(query)
                redirect(serializer.serialized_path(found))
              end
              search_for_object
              request.xhr? ? serve_xhr : serve_normal
            end