When a node is deleted or unpublished, it gets removed from Solr index by the function apachesolr_index_delete_entity_from_index(). However the translated documents in Solr are not being removed.
This is because the Solr query in apachesolr_index_delete_entity_from_index() does not take into account language:
$document_id = apachesolr_document_id($entity_id, $entity_type); $query = "id:\"$document_id\" OR sm_parent_document_id:\"$document_id\""; $solr->deleteByQuery($query);
The solution is very simple, add the original document id to the translated documents, in the field sm_parent_document_id.
I will add a patch for this.
Thank you very much,