public function parseRequestParams() { parent::parseRequestParams(); $catchAppNameEnabled = MMGlobalSearch::isCatchUpAppNameEnabled(); if ( $catchAppNameEnabled ) { $applicationList = array(); $result = ApplicationSearch::search( $this->searchQuery ); if ( $result['response']['numFound'] > 0 ) { foreach ( $result['response']['docs'] as $row ) { $application = CacheApplicationTool::buildLocalizedApplicationByIdentifier( $row['identifier_s'] ); if ( $application instanceof ApplicationLocalized ) { $applicationList[$row['identifier_s']] = array( 'identifier' => $row['identifier_s'], 'name' => $row['name_s'], 'url' => $application->applicationUrl() ); } } $this->contentList->pushResult( 'application_list' , $applicationList ); } } $this->withAllSpecialities = false; $this->withT3Facets = false; }
'applicationIds' => 'Application ids comma seperated' ) ); $script->startup(); $script->initialize(); $clusters = array(); if( $options['clusterIdentifier'] ) { $clusters = array( $options['clusterIdentifier'] ); } else { foreach( glob( 'extension/cluster_*') as $f ) $clusters[] = basename( $f ); } $applicationIds = array(); if ( !empty( $options['applicationIds'] ) ) { $applicationIds = explode( ',' , $options['applicationIds'] ); } foreach( $clusters as $clusterIdentifier ) { ClusterTool::setCurrentCluster($clusterIdentifier); ApplicationSearch::reindex( $clusterIdentifier, $applicationIds ); } $script->shutdown();