anamikabir / solr-php-client

solr-php-client
Other
0 stars 0 forks source link

Cannot use root-level URL Solr servers #80

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. config your Solr to run on e.g. localhost:18000/
2. try to connect w. $path set to empty string

What is the expected output? What do you see instead?
Should connect to Solr server, instead a 404 error is given.

What version of the product are you using? On what operating system?
r60, Ubuntu

Please provide any additional information below.
A fix would be: change the _path variable initialization on 
Apache/Solr/Service.php at function setPath($path) (line 461) from:

$this->_path = '/' . $path . '/';

to e.g.:

if ($path == '') {
    $this->_path = '/';
} else {
    $this->_path = '/' . $path . '/';
}

Original issue reported on code.google.com by android...@gmail.com on 25 Jun 2012 at 1:47

GoogleCodeExporter commented 8 years ago
surprised this hasn't been reported before. thanks.

Original comment by donovan....@gmail.com on 25 Jun 2012 at 2:18

GoogleCodeExporter commented 8 years ago
Fixed in r63

Original comment by donovan....@gmail.com on 25 Jun 2012 at 5:39