I have a question. SolrphpClient is not working with multicore.
I have two cores in my solr say core1 and core2.
While creating object of SolrPhpClient I am using the following syntax.
$solr = new Apache_Solr_Service(‘192.168.12.226’, ‘8983’, ‘solr/core1/’ );
It’s giving a fatal error…
Fatal error: Uncaught exception ‘Exception’ with message ‘”500″ Status: null_javalangNullPointerException_at_javaioStringReaderinitStringReaderjava50__at_orgapachelucenequeryParserQue’ in C:\xampp\htdocs\solrsite\SolrPhpClient\Apache\Solr\Service.php:334 Stack trace: #0 C:\xampp\htdocs\solrsite\SolrPhpClient\Apache\Solr\Service.php(964): Apache_Solr_Service->_sendRawGet(‘http://192.168….’) #1 C:\xampp\htdocs\solrsite\script\productlist.php(403): Apache_Solr_Service->search(NULL, 0, 15, Array) #2 C:\xampp\htdocs\solrsite\index.php(510): include_once(‘C:\xampp\htdocs…’) #3 {main} thrown in C:\xampp\htdocs\solrsite\SolrPhpClient\Apache\Solr\Service.php on line 334
Solr is working fine in admin part.
Any help will be appreciated.
Based on your url that you provided:
It does not look like you are providing an actual query
q=value in your request. I would guess that is the reason for the error… I would suggest that you start with setting the SolrPhpClient so that is passesq=*:*to start with.