protected function deleteAllSynonyms() : bool
    {
        $coreAdmin = $this->selectedSolrCoreConnection->getAdminService();
        $synonyms = $coreAdmin->getSynonyms();
        $allSynonymsCouldBeDeleted = true;

        foreach ($synonyms as $baseWord => $synonym) {
            $deleteResponse = $coreAdmin->deleteSynonym($baseWord);
            $allSynonymsCouldBeDeleted = $allSynonymsCouldBeDeleted && $deleteResponse->getHttpStatus() == 200;
        }

        return $allSynonymsCouldBeDeleted;
    }
protected function deleteAllSynonyms() : bool
    {
        $coreAdmin = $this->selectedSolrCoreConnection->getAdminService();
        $synonyms = $coreAdmin->getSynonyms();
        $allSynonymsCouldBeDeleted = true;

        foreach ($synonyms as $baseWord => $synonym) {
            $deleteResponse = $coreAdmin->deleteSynonym($baseWord);
            $allSynonymsCouldBeDeleted = $allSynonymsCouldBeDeleted && $deleteResponse->getHttpStatus() == 200;
        }

        return $allSynonymsCouldBeDeleted;
    }
protected function deleteAllSynonyms ( ) : bool { $ coreAdmin = $ this -> selectedSolrCoreConnection -> getAdminService ( ) ; $ synonyms = $ coreAdmin -> getSynonyms ( ) ; $ allSynonymsCouldBeDeleted = true ; foreach ( $ synonyms as $ baseWord => $ synonym ) { $ deleteResponse = $ coreAdmin -> deleteSynonym ( $ baseWord ) ; $ allSynonymsCouldBeDeleted = $ allSynonymsCouldBeDeleted && $ deleteResponse -> getHttpStatus ( ) == 200 ; } return $ allSynonymsCouldBeDeleted ; }
Delete complete synonym list form solr

@return bool
Delete complete synonym list form solr