I have followed this http://drupal.org/node/532584 and also tried to set up using the README.txt in drupal module ! but it always say s the same error
Apache Solr: Your site was unable to contact the Apache Solr server.
I am using these :

  • Apache Solr 1.4.1
  • SolrPhpClient r 22

Hitting solr admin either through tomcat or java -jar start.jar i always get response.
There s no error in starting up these. There was no firewall issue as i added an exception for it as well in windows.
(I have made proper settings for in Solr Setting s inside drupal admin)

Comments

Nick_vh’s picture

Status: Active » Closed (cannot reproduce)

As a quote from pwolanin :

Server setup issues are almost impossible to debug via the issue queue. Find a friend who knows more and have them sit with you.
You should be able to watch the console output of Solr and see the updates happening.
Check your PHP logs and make sure there is no error during cron.

Most probably this is a server setup that is not having the correct permissions to connect or the port that you are connecting with is different.

kantu’s picture

Hi Nick,

I tried this :
function apachesolr_requirements($phase) {
$requirements = array();
$file_exists = file_exists(dirname(__FILE__) . '/SolrPhpClient/Apache/Solr/Service.php');
include 'SolrPhpClient/Apache/Solr/Service.php';
$solr = new Apache_Solr_Service();
$solr->setPort('8983');
$solr->setHost('localhost');
$solr->setPath('/solr');
$flag = $solr->ping();
echo $flag;
die(__FUNCTION__);

And I was able to get response, so it is able to ping solr server.
But its not able to ping using
$solr = apachesolr_get_solr();

kantu’s picture

Status: Closed (cannot reproduce) » Active
Nick_vh’s picture

It says that you are using Drupal 6 version? Correct?
I'm very doubtful about this one since you are the first to report a connection problem for a module that has thousands of users?
Please give us more information about your environment and possible try to find the bug that is causing your problem so we have a starting point?

Nick_vh’s picture

Status: Active » Closed (cannot reproduce)
Dhruv Panchal’s picture

Issue summary: View changes

You just need to add your collection in solr by following the step given in this url ( https://drupal.stackexchange.com/questions/95897/apache-solr-4-6-0-insta... ) and then select your collection from your solr which is running on localhost or live site (http://localhost:8983/solr/) and go to schema tab. Click schema tab and then you can see you schema file attach in apachesolr module.

You now just need to your schema url which just look like this http://localhost:8983/solr/your_core_name/. Now add this url in apachesolr module.

Then it will show that your site has contacted apache solr server in your drupal site.