hook_apachesolr_exclude not working
I have fixed the problem to exclude node from Apache Solr search by installing Apache Solr Exclude Node module. To configure this module, please follow the below steps:


Enable excluding of nodes in the submission form settings fieldset in the 
content type settings (e.g. admin/structure/types/page).
Find the vertical tabs fieldset "Apache Solr exclude" in the node edit form. 

Check "Exclude from Apache Solr" and save.