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
8use App\Libraries\Elasticsearch\Search;
9
10class BasicSearch extends Search
11{
12 /**
13 * @param string $index Name of the index.
14 * @param string $loggingTag Name to tag the operation with.
15 */
16 public function __construct(string $index, string $loggingTag = null)
17 {
18 parent::__construct($index, new EmptySearchParams());
19
20 $this->loggingTag = $loggingTag;
21 }
22
23 public function data()
24 {
25 return $this->response();
26 }
27
28 public function getQuery()
29 {
30 return $this->query;
31 }
32}