Site was unable to contact the Apache Solr server.

For those who are having the mentioned error in Drupal and running your Apache/PHP/MySQL in Windows Server, even though you can open up http://localhost:8983/solr/admin, this error can be rectified easily. The main reason this problem occurred is due to SVN checkout command-line.

To solve this problem, you do not actually need to use the command:

svn checkout -r6 http://solr-php-client.googlecode.com/svn/trunk/ SolrPhpClient

Once you have downloaded the SolrPhpClient from http://code.google.com/p/solr-php-client/ and placed it in your apachesolr folder, all you have to do is download the files from http://solr-php-client.googlecode.com/svn/trunk/ one by one and saving them in to folders respectively. For example, if you are downloading /trunk/Apache/Solr/Document.php, make sure you save the file as x:\SolrPhpClient\Apache\Solr\Document.php, and so on.

Once you have downloaded all of the files, just copy the SolrPhpClient which you created and downloaded the files in it, and paste it in /modules/apachesolr to overwrite the files.

Restart your Apache Solr server and try to do the settings in your Drupal. If you did it correctly, Drupal should be able to contact Apache Solr.

Anonymous's picture

thanks to jonloh.net.i

thanks to jonloh.net.i followed ur steps and now drupal able to contact Apache solr.But in search index page it shows " 0% of the site content has been sent to the server ".wat to do..thanks

jonloh's picture

It's easy :) Just go to

It's easy :) Just go to Reports > Status Report > under Cron Maintenance Task, click on 'Run cron manually'.

This will perform the search indexing for the site.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Allowed HTML tags: <strong> <em> <u> <strike> <ul> <ol> <li>
  • Lines and paragraphs break automatically.

More information about formatting options