src/SearchIndexHandlers/Elasticsearch.php
public function removeFromIndexByTypeAndId($type, $id, $indexName = null)
    {
        $indexName = $this->resolveIndexName($indexName);

        $this->elasticsearch->delete(
            [
                'index' => $indexName,
                'type'  => $type,
                'id'    => $id,
            ]
        );
    }
public function removeFromIndexByTypeAndId($type, $id, $indexName = null)
    {
        $indexName = $this->resolveIndexName($indexName);

        $this->elasticsearch->delete(
            [
                'index' => $indexName,
                'type'  => $type,
                'id'    => $id,
            ]
        );
    }
public function removeFromIndexByTypeAndId ( $ type , $ id , $ indexName = null ) { $ indexName = $ this -> resolveIndexName ( $ indexName ) ; $ this -> elasticsearch -> delete ( [ 'index' => $ indexName , 'type' => $ type , 'id' => $ id , ] ) ; }
Remove an item from the search index by type and id.

@param string $type
@param int    $id
Remove an item from the search index by type and id .