mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
fix: Fixed anime search query (#735)
This commit is contained in:
@@ -31,17 +31,13 @@ class AnimeQuery extends ElasticQuery
|
||||
[
|
||||
// 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()),
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user