Skip to content

Commit

Permalink
search nested tags
Browse files Browse the repository at this point in the history
  • Loading branch information
notbakaneko committed Dec 25, 2024
1 parent 8c34076 commit d69738c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/Libraries/Search/BeatmapsetSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ public function getQuery()
->should(['term' => ['_id' => ['value' => $this->params->queryString, 'boost' => 100]]])
->should(QueryHelper::queryString($this->params->queryString, $partialMatchFields, 'or', 1 / count($terms)))
->should(QueryHelper::queryString($this->params->queryString, [], 'and'))
->should([
'nested' => [
'path' => 'beatmaps',
'query' => QueryHelper::queryString($this->params->queryString, ['beatmaps.top_tags'], 'or', 0.5 / count($terms)),
]

Check failure on line 67 in app/Libraries/Search/BeatmapsetSearch.php

View workflow job for this annotation

GitHub Actions / Lint all

Multi-line arrays must have a trailing comma after the last element.
])
);
}

Expand Down

0 comments on commit d69738c

Please sign in to comment.