the browser-facing portion of osu!
at master 945 B view raw
1<?php 2 3// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. 4// See the LICENCE file in the repository root for full licence text. 5 6namespace App\Libraries\Search; 7 8class QuickSearch extends MultiSearch 9{ 10 const MODES = [ 11 'beatmapset' => [ 12 'type' => BeatmapsetSearch::class, 13 'paramsType' => BeatmapsetSearchRequestParams::class, 14 'size' => 5, 15 ], 16 'forum_post' => [ 17 'type' => ForumSearch::class, 18 'paramsType' => ForumSearchRequestParams::class, 19 'size' => 0, 20 ], 21 'user' => [ 22 'type' => UserSearch::class, 23 'paramsType' => UserSearchRequestParams::class, 24 'size' => 5, 25 ], 26 'wiki_page' => [ 27 'type' => WikiSearch::class, 28 'paramsType' => WikiSearchRequestParams::class, 29 'size' => 0, 30 ], 31 ]; 32}