Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Nick_vhAs a quote from pwolanin :
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.
Comment #2
kantu CreditAttribution: kantu commentedHi 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();
Comment #3
kantu CreditAttribution: kantu commentedComment #4
Nick_vhIt 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?
Comment #5
Nick_vhComment #6
Dhruv Panchal CreditAttribution: Dhruv Panchal commentedYou 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.