src/snac/server/elastic/ElasticSearchUtil.php
/**
     * Delete Names from Name Indices
     *
     * Deletes the names found in the given constellation from the Elastic Search name indices.
     *
     * @param \snac\data\Constellation $constellation The constellation object to delete from Elastic Search
     */
Delete Names from Name Indices
Deletes the names found in the given constellation from the Elastic Search name indices.

@param \snac\data\Constellation $constellation The constellation object to delete from Elastic Search
Delete Names from Name Indices Deletes the names found in the given constellation from the Elastic Search name indices . @param \ snac \ data \ Constellation $constellation The constellation object to delete from Elastic Search
public function deleteFromNameIndices(&$constellation) {
        if ($this->connector != null) {
            $params = [
                    'index' => \snac\Config::$ELASTIC_SEARCH_BASE_INDEX,
                    'id' => $constellation->getID()
            ];
            try {
                $this->connector->delete($params);
            } catch (\Exception $e) {
                $this->logger->addWarning("ConstellationID not found when deleting from elastic search index: ". $e->getMessage(), $e->getTrace());
            }
            foreach ($constellation->getNameEntries() as $entry) {
                $params = [
                    'index' => \snac\Config::$ELASTIC_SEARCH_ALL_INDEX,
                    'id' => $entry->getID()
                ];
                try {
                    $this->connector->delete($params);
                } catch (\Exception $e) {
                    $this->logger->addWarning("ConstellationID not found when deleting from elastic search index: ". $e->getMessage(), $e->getTrace());
                }
            }
            $this->logger->addDebug("Updated elastic search to remove constellation");
        }
    }
public function deleteFromNameIndices ( & $ constellation ) { if ( $ this -> connector != null ) { $ params = [ 'index' => \ snac \ Config :: $ ELASTIC_SEARCH_BASE_INDEX , 'id' => $ constellation -> getID ( ) ] ; try { $ this -> connector -> delete ( $ params ) ; } catch ( \ Exception $ e ) { $ this -> logger -> addWarning ( " ConstellationID not found when deleting from elastic search index:  " . $ e -> getMessage ( ) , $ e -> getTrace ( ) ) ; } foreach ( $ constellation -> getNameEntries ( ) as $ entry ) { $ params = [ 'index' => \ snac \ Config :: $ ELASTIC_SEARCH_ALL_INDEX , 'id' => $ entry -> getID ( ) ] ; try { $ this -> connector -> delete ( $ params ) ; } catch ( \ Exception $ e ) { $ this -> logger -> addWarning ( " ConstellationID not found when deleting from elastic search index:  " . $ e -> getMessage ( ) , $ e -> getTrace ( ) ) ; } } $ this -> logger -> addDebug ( " Updated elastic search to remove constellation " ) ; } }
Delete Names from Name Indices
 Deletes the names found in the given constellation from the Elastic Search name indices.
Delete Names from Name Indices Deletes the names found in the given constellation from the Elastic Search name indices .
// 'index' => \snac\Config::$ELASTIC_SEARCH_BASE_INDEX,