Update manticoresearch searchIndexes function to return proper data

This commit is contained in:
DariusIII
2023-04-06 12:19:05 +02:00
parent 8357d6708f
commit 2368498d14
5 changed files with 39 additions and 6 deletions
+1 -1
View File
@@ -200,7 +200,7 @@ class Predb extends Model
$ids = (new ElasticSearchSiteSearch())->predbIndexSearch($search);
} else {
$manticore = new ManticoreSearch();
$ids = Arr::pluck($manticore->searchIndexes('predb_rt', $search, ['title']), 'id');
$ids = Arr::get($manticore->searchIndexes('predb_rt', $search, ['title']), 'id');
}
$sql->whereIn('predb.id', $ids);
}