Closed GoogleCodeExporter closed 9 years ago
the problem seems to be in the convertion from json: because if I call
/solr/select in the json response fq is correct (array), but if I print_r
$response->getRawResponse() fq is string!
Original comment by marco.pa...@gmail.com
on 19 May 2011 at 3:53
The library uses json_decode so I doubt its a bug there. I think more likely,
there's a difference between your manually called URL and what you're
generating with the PHP client. Can you make sure your test code is similar to
this (specifically the construction of the $params):
<?php
$solr = new Apache_Solr_Service();
$params = array(
// note I have to use an array to pass the same parameter
// multiple times
'fq' => array(
'author:dante',
'date:1959'
)
);
try
{
$response = $solr->search('*:*', 0, 10, $params);
// here's the JSON
print_r($response->getRawResponse());
// here's the fq params as reported by responseHeader
print_r($response->responseHeader->params->fq);
}
catch (Apache_Solr_HttpTransportException $te)
{
echo $te->getMessage(), "\n";
echo $te->getResponse()->getRawResponse(), "\n";
}
?>
Original comment by donovan....@gmail.com
on 19 May 2011 at 4:35
I could not reproduce this issue given the description, and the submitter has
not yet responded to my comment.
Original comment by donovan....@gmail.com
on 20 May 2011 at 12:19
You can close this issue: the library that call Apache_Solr_Service extract fq
from query string without split param with same name ($_GET['fq'] return always
last value).
sorry, next time I'll be more careful
thanks
Original comment by marco.pa...@gmail.com
on 20 May 2011 at 3:28
Original issue reported on code.google.com by
marco.pa...@gmail.com
on 19 May 2011 at 3:47