Hello,

I've just installed Solr1.4 on a CentOS machine and wanted to
index 300-500 documents from a PHP script. I run the script from a
WindowsXP host.

Sporadically I'm getting the same error as Ellery Leung:

Communication Error' in C:\httpd_docs\www\lib\Apache\Solr\Service.php:385
Stack trace:
#0 C:\httpd_docs\www\lib\Apache\Solr\Service.php(652):
Apache_Solr_Service->_sendRawPost('http://ge.usm.m...', '<add
allowDups=...')
#1 C:\httpd_docs\www\lib\Apache\Solr\Service.php(676):
Apache_Solr_Service->add('<add allowDups=...')
#2 C:\httpd_docs\www\html\solr\html\index.php(53):
Apache_Solr_Service->addDocument(Object(Apache_Solr_Document))
#3 {main}

Ellery noticed that there are some strange problems on Windows,
so I've tried to run the same PHP script but on Linux (actually on the
same machine where Solr is located).
And voila, there are no such problems.

Conclusion, there is something wrong with the Windows or PHP on Windows
I think. I don't have any other ideas.

By the way, setting the default_socket_timeout PHP variable to a higher
value doesn't help, I think the problem is somewhere else


Kind Regards,
Oleg Burlaca

Reply via email to