File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/Service/Search/SearchService Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 26
26
use Pimcore \Bundle \GenericDataIndexBundle \Service \SearchIndex \IndexService \ElementTypeAdapter \AssetTypeAdapter ;
27
27
use Pimcore \Bundle \GenericDataIndexBundle \Service \SearchIndex \IndexService \ElementTypeAdapter \DataObjectTypeAdapter ;
28
28
use Pimcore \Bundle \GenericDataIndexBundle \Service \SearchIndex \IndexService \ElementTypeAdapter \DocumentTypeAdapter ;
29
+ use Pimcore \Bundle \GenericDataIndexBundle \Service \SearchIndex \SearchIndexConfigServiceInterface ;
29
30
30
31
/**
31
32
* @internal
@@ -36,6 +37,7 @@ public function __construct(
36
37
private AssetTypeAdapter $ assetTypeAdapter ,
37
38
private DataObjectTypeAdapter $ dataObjectTypeAdapter ,
38
39
private DocumentTypeAdapter $ documentTypeAdapter ,
40
+ private SearchIndexConfigServiceInterface $ searchIndexConfigService
39
41
) {
40
42
}
41
43
@@ -56,7 +58,7 @@ public function resolveIndexName(SearchInterface $search): string
56
58
}
57
59
58
60
if ($ search instanceof ElementSearch) {
59
- return IndexName::ELEMENT_SEARCH ->value ;
61
+ return $ this -> searchIndexConfigService -> getIndexName ( IndexName::ELEMENT_SEARCH ->value ) ;
60
62
}
61
63
62
64
throw new InvalidArgumentException ('Unsupported search type: ' . get_class ($ search ));
You can’t perform that action at this time.
0 commit comments