public function indexAction()
    {
        if ($this->selectedSolrCoreConnection === null) {
            $this->view->assign('can_not_proceed', true);
            return;
        }

        $synonyms = [];
        $coreAdmin = $this->selectedSolrCoreConnection->getAdminService();
        $rawSynonyms = $coreAdmin->getSynonyms();
        foreach ($rawSynonyms as $baseWord => $synonymList) {
            $synonyms[$baseWord] = implode(', ', $synonymList);
        }

        $stopWords = $coreAdmin->getStopWords();
        $this->view->assignMultiple([
            'synonyms' => $synonyms,
            'stopWords' => implode(PHP_EOL, $stopWords),
            'stopWordsCount' => count($stopWords)
        ]);
    }
public function indexAction()
    {
        if ($this->selectedSolrCoreConnection === null) {
            $this->view->assign('can_not_proceed', true);
            return;
        }

        $synonyms = [];
        $coreAdmin = $this->selectedSolrCoreConnection->getAdminService();
        $rawSynonyms = $coreAdmin->getSynonyms();
        foreach ($rawSynonyms as $baseWord => $synonymList) {
            $synonyms[$baseWord] = implode(', ', $synonymList);
        }

        $stopWords = $coreAdmin->getStopWords();
        $this->view->assignMultiple([
            'synonyms' => $synonyms,
            'stopWords' => implode(PHP_EOL, $stopWords),
            'stopWordsCount' => count($stopWords)
        ]);
    }
public function indexAction ( ) { if ( $ this -> selectedSolrCoreConnection === null ) { $ this -> view -> assign ( 'can_not_proceed' , true ) ; return ; } $ synonyms = [ ] ; $ coreAdmin = $ this -> selectedSolrCoreConnection -> getAdminService ( ) ; $ rawSynonyms = $ coreAdmin -> getSynonyms ( ) ; foreach ( $ rawSynonyms as $ baseWord => $ synonymList ) { $ synonyms [ $ baseWord ] = implode ( ', ' , $ synonymList ) ; } $ stopWords = $ coreAdmin -> getStopWords ( ) ; $ this -> view -> assignMultiple ( [ 'synonyms' => $ synonyms , 'stopWords' => implode ( PHP_EOL , $ stopWords ) , 'stopWordsCount' => count ( $ stopWords ) ] ) ; }
Gets synonyms and stopwords for the currently selected core

@return void
Gets synonyms and stopwords for the currently selected core