public function deleteSynonymsAction($baseWord)
    {
        $coreAdmin = $this->selectedSolrCoreConnection->getAdminService();
        $deleteResponse = $coreAdmin->deleteSynonym($baseWord);
        $reloadResponse = $coreAdmin->reloadCore();

        if ($deleteResponse->getHttpStatus() == 200
            && $reloadResponse->getHttpStatus() == 200
        ) {
            $this->addFlashMessage(
                'Synonym removed.'
            );
        } else {
            $this->addFlashMessage(
                'Failed to remove synonym.',
                'An error occurred',
                FlashMessage::ERROR
            );
        }

        $this->redirect('index');
    }
public function deleteSynonymsAction($baseWord)
    {
        $coreAdmin = $this->selectedSolrCoreConnection->getAdminService();
        $deleteResponse = $coreAdmin->deleteSynonym($baseWord);
        $reloadResponse = $coreAdmin->reloadCore();

        if ($deleteResponse->getHttpStatus() == 200
            && $reloadResponse->getHttpStatus() == 200
        ) {
            $this->addFlashMessage(
                'Synonym removed.'
            );
        } else {
            $this->addFlashMessage(
                'Failed to remove synonym.',
                'An error occurred',
                FlashMessage::ERROR
            );
        }

        $this->redirect('index');
    }
public function deleteSynonymsAction ( $ baseWord ) { $ coreAdmin = $ this -> selectedSolrCoreConnection -> getAdminService ( ) ; $ deleteResponse = $ coreAdmin -> deleteSynonym ( $ baseWord ) ; $ reloadResponse = $ coreAdmin -> reloadCore ( ) ; if ( $ deleteResponse -> getHttpStatus ( ) == 200 && $ reloadResponse -> getHttpStatus ( ) == 200 ) { $ this -> addFlashMessage ( 'Synonym removed.' ) ; } else { $ this -> addFlashMessage ( 'Failed to remove synonym.' , 'An error occurred' , FlashMessage :: ERROR ) ; } $ this -> redirect ( 'index' ) ; }
Deletes a synonym mapping by its base word.

@param string $baseWord Synonym mapping base word
Deletes a synonym mapping by its base word .