Spatie\SearchIndex\SearchIndexHandlers\Elasticsearch::removeFromIndexByTypeAndId PHP Method

removeFromIndexByTypeAndId() public method

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