@@ -59,7 +59,7 @@ public function index(Request $request): \Illuminate\Http\JsonResponse
59
59
// Prepare the search queries
60
60
$ searchQueries = [
61
61
(new SearchQuery ())
62
- ->setIndexUid ('torrents ' )
62
+ ->setIndexUid (config ( ' scout.prefix ' ). 'torrents ' )
63
63
->setQuery ($ searchById ? '' : $ query )
64
64
->setFilter ($ filters )
65
65
->setDistinct ('imdb ' )
@@ -68,7 +68,7 @@ public function index(Request $request): \Illuminate\Http\JsonResponse
68
68
// Add the people search query only if it's not an ID search
69
69
if (!$ searchById ) {
70
70
$ searchQueries [] = (new SearchQuery ())
71
- ->setIndexUid ('people ' )
71
+ ->setIndexUid (config ( ' scout.prefix ' ). 'people ' )
72
72
->setQuery ($ query );
73
73
//->setFederationOptions((new FederationOptions())->setWeight(0.9));
74
74
}
@@ -80,7 +80,7 @@ public function index(Request $request): \Illuminate\Http\JsonResponse
80
80
81
81
// Process the hits from the multiSearchResults
82
82
foreach ($ multiSearchResults ['hits ' ] as $ hit ) {
83
- if ($ hit ['_federation ' ]['indexUid ' ] === 'torrents ' ) {
83
+ if ($ hit ['_federation ' ]['indexUid ' ] === config ( ' scout.prefix ' ). 'torrents ' ) {
84
84
$ type = $ hit ['category ' ]['movie_meta ' ] === true ? 'movie ' : 'tv ' ;
85
85
86
86
$ results [] = [
@@ -91,7 +91,7 @@ public function index(Request $request): \Illuminate\Http\JsonResponse
91
91
'url ' => route ('torrents.similar ' , ['category_id ' => $ hit ['category ' ]['id ' ], 'tmdb ' => $ hit ['tmdb ' ]]),
92
92
'type ' => $ type === 'movie ' ? 'Movie ' : 'TV Series ' ,
93
93
];
94
- } elseif ($ hit ['_federation ' ]['indexUid ' ] === 'people ' ) {
94
+ } elseif ($ hit ['_federation ' ]['indexUid ' ] === config ( ' scout.prefix ' ). 'people ' ) {
95
95
$ results [] = [
96
96
'id ' => $ hit ['id ' ],
97
97
'name ' => $ hit ['name ' ],
0 commit comments