[
https://issues.apache.org/jira/browse/SOLR-196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12709798#action_12709798
]
Andrew McCombe commented on SOLR-196:
-------------------------------------
I think the issue I have is with Solr and not the PHP output. My 'recommended'
field is an integer in the solr schema.xml but when documents are added it is
converting 0 and 1 to boolean values, even though I have some values at 0,1,2,
10 and 11.
Hence the output is showing as:
{s:2:"id";s:6:"538366";s:11:"recommended";i:false;}
I think that PHP's unserialize function may be failing due to the wrong value
for the datatype.
> A PHP response writer for Solr
> ------------------------------
>
> Key: SOLR-196
> URL: https://issues.apache.org/jira/browse/SOLR-196
> Project: Solr
> Issue Type: New Feature
> Components: clients - php, search
> Reporter: Paul Borgermans
> Fix For: 1.3
>
> Attachments: SOLR-192-php-responsewriter.patch,
> SOLR-196-PHPResponseWriter.patch
>
>
> It would be useful to have a PHP response writer that returns an array to be
> eval-ed directly. This is especially true for PHP4.x installs, where there is
> no built in support for JSON.
> This issue attempts to address this.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.