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 2626use  Pimcore \Bundle \GenericDataIndexBundle \Service \SearchIndex \IndexService \ElementTypeAdapter \AssetTypeAdapter ;
2727use  Pimcore \Bundle \GenericDataIndexBundle \Service \SearchIndex \IndexService \ElementTypeAdapter \DataObjectTypeAdapter ;
2828use  Pimcore \Bundle \GenericDataIndexBundle \Service \SearchIndex \IndexService \ElementTypeAdapter \DocumentTypeAdapter ;
29+ use  Pimcore \Bundle \GenericDataIndexBundle \Service \SearchIndex \SearchIndexConfigServiceInterface ;
2930
3031/** 
3132 * @internal 
@@ -36,6 +37,7 @@ public function __construct(
3637        private  AssetTypeAdapter   $ assetTypeAdapter ,
3738        private  DataObjectTypeAdapter   $ dataObjectTypeAdapter ,
3839        private  DocumentTypeAdapter   $ documentTypeAdapter ,
40+         private  SearchIndexConfigServiceInterface   $ searchIndexConfigService
3941    ) {
4042    }
4143
@@ -56,7 +58,7 @@ public function resolveIndexName(SearchInterface $search): string
5658        }
5759
5860        if  ($ search  instanceof  ElementSearch) {
59-             return  IndexName::ELEMENT_SEARCH ->value ;
61+             return  $ this -> searchIndexConfigService -> getIndexName ( IndexName::ELEMENT_SEARCH ->value ) ;
6062        }
6163
6264        throw  new  InvalidArgumentException ('Unsupported search type:  '  . get_class ($ search ));
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments