Indexer.php
/**
     * Remove document from solr by ID
     * @param array $metadata
     * @param string $document_id
     */
Remove document from solr by ID
@param array $metadata
@param string $document_id
Remove document from solr by ID @param array $metadata @param string $document_id
public function deleteDocumentById($metadata, $document_id)
    {
        $this->setCoreNameFromMetadata($metadata);
        $updateQuery = $this->client->createUpdate();
        $updateQuery->addDeleteById($document_id);
        $this->client->update($updateQuery);
    }
public function deleteDocumentById ( $ metadata , $ document_id ) { $ this -> setCoreNameFromMetadata ( $ metadata ) ; $ updateQuery = $ this -> client -> createUpdate ( ) ; $ updateQuery -> addDeleteById ( $ document_id ) ; $ this -> client -> update ( $ updateQuery ) ; }
Remove document from solr by ID
 @param array $metadata
 @param string $document_id
Remove document from solr by ID @param array $metadata @param string $document_id