mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 17:01:16 +00:00
Further improve returned search results
This commit is contained in:
@@ -2349,7 +2349,7 @@ class ManticoreSearchDriver implements SearchDriverInterface
|
||||
return $this->searchReleasesByCategory($categoryIds, $limit);
|
||||
}
|
||||
|
||||
$searchExpr = '@@relaxed @searchname '.$preparedSearch;
|
||||
$searchExpr = '@@relaxed '.self::scopePreparedQueryToField($preparedSearch, '@searchname');
|
||||
|
||||
$query = (new Search($this->manticoreSearch))
|
||||
->setTable($this->getReleasesIndex())
|
||||
@@ -2428,7 +2428,7 @@ class ManticoreSearchDriver implements SearchDriverInterface
|
||||
}
|
||||
$prepared = self::prepareUserSearchQuery((string) $value);
|
||||
if ($prepared !== '') {
|
||||
$terms[] = '@@relaxed @'.$key.' '.$prepared;
|
||||
$terms[] = '@@relaxed '.self::scopePreparedQueryToField($prepared, '@'.$key);
|
||||
}
|
||||
}
|
||||
if ($terms === []) {
|
||||
|
||||
Reference in New Issue
Block a user