Skip to content

Commit

Permalink
fix: Fixed anime search query (#735)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maniload authored Aug 27, 2024
1 parent 7458653 commit 6fd6931
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/Scout/Elasticsearch/Api/Query/Wiki/AnimeQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,13 @@ public function build(Criteria $criteria): SearchParametersBuilder
[
// The more sub-queries match the better the score will be.
'bool' => [
'should' => [
$this->createTextQuery('name', $criteria->getTerm()),
],
'should' => $this->createTextQuery('name', $criteria->getTerm()),
],
],
[
'bool' => [
'boost' => 0.85,
'should' => [
$this->createNestedTextQuery('synonyms', 'text', $criteria->getTerm()),
],
'should' => $this->createNestedTextQuery('synonyms', 'text', $criteria->getTerm()),
],
],
],
Expand Down

0 comments on commit 6fd6931

Please sign in to comment.