src/SearchIndexHandlers/Elasticsearch.php
public function removeFromIndex(Searchable $subject, $indexName = null)
    {
        $indexName = $this->resolveIndexName($indexName);

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

        $this->elasticsearch->delete(
            [
                'index' => $indexName,
                'type'  => $subject->getSearchableType(),
                'id'    => $subject->getSearchableId(),
            ]
        );
    }
public function removeFromIndex ( Searchable $ subject , $ indexName = null ) { $ indexName = $ this -> resolveIndexName ( $ indexName ) ; $ this -> elasticsearch -> delete ( [ 'index' => $ indexName , 'type' => $ subject -> getSearchableType ( ) , 'id' => $ subject -> getSearchableId ( ) , ] ) ; }
Remove the given subject from the search index.

@param Searchable $subject
Remove the given subject from the search index .