lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steffen B." <>
Subject PHPResponseWriter problem with (de)serialization (spellchecker)
Date Wed, 26 Nov 2008 15:54:49 GMT

Hi everyone,
maybe it's just me, but whenever I try to deserialize a Solr response that
contains the spellchecker with spellcheck.extendedResults, it fails. I'm
using PHP5 and everthing is pretty much up-to-date.
<lst name="spellcheck">
  <lst name="suggestions">
    <bool name="correctlySpelled">true</bool>
will be converted to
which is not deserializeable with unserialize():
Notice: unserialize() [function.unserialize]: Error at offset 305 of 312
bytes in /Solr/Client.php on line 131

PHP, on the other hand, serializes an array this way:

So there are obviously differences in the way boolean vars are converted,
though I'm not sure if it's a problem with the PHPResponseWriter or with my
setup. Can anyone confirm this behaviour?

View this message in context:
Sent from the Solr - User mailing list archive at

View raw message