mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-01 02:38:55 +00:00
Update similar releases earch. Closes #1250
This commit is contained in:
@@ -618,9 +618,9 @@ class Release extends Model
|
||||
|
||||
if (! empty($similar)) {
|
||||
if (config('nntmux.elasticsearch_enabled') === true) {
|
||||
$searchResult = (new ElasticSearchSiteSearch())->indexSearch($similar, 10);
|
||||
$searchResult = (new ElasticSearchSiteSearch())->indexSearch($similar[1], 10);
|
||||
} else {
|
||||
$results = (new SphinxSearch())->searchIndexes('releases_rt', $similar);
|
||||
$results = (new SphinxSearch())->searchIndexes('releases_rt', $similar[1]);
|
||||
|
||||
$searchResult = Arr::pluck($results, 'id');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user