List Info

Thread: Re: how to use PHP AND PHPS?




Re: how to use PHP AND PHPS?
user name
2007-11-05 10:15:16
Did you enable the PHP serialized response writer in your
solrconfig.xml? It is not enabled by default.

Thanks,
Stu


-----Original Message-----
From: James liu <liuping.jamesgmail.com>
Sent: Monday, November 5, 2007 9:03am
To: solr-userlucene.apache.org
Subject: Re: how to use PHP AND PHPS?

i know it...but u try it,,u will find simlar question.

On 11/5/07, Robert Young <bubblenutgmail.com> wrote:
>
> I would imagine you have to unserialize
>
> On 11/5/07, James liu <liuping.jamesgmail.com> wrote:
> > i find they all return string....
> >
> > <?php
> >   $url = '
> >
> http:/
/localhost:8080/solr/select/?q=solr&version=2.2&star
t=0&rows=10&indent=on&wt=php
> > ';
> >   var_dump(file_get_contents($url);
> > ?>
> >
> >
> > --
> > regards
> > jl
> >
>



-- 
regards
jl



Re: how to use PHP AND PHPS?
user name
2007-11-05 21:06:03
first: i m sure i enable php and phps in my solrconfig.xml
two: i can't get answer.

*phps:
*<?php
$url = '
http://
localhost:8080/solr1/select/?q=2&version=2.2&start=0
&rows=10&indent=on&wt=phps
';
$a = file_get_contents($url);
echo 'before unserialize....<br/>';
var_dump($a);
$a = unserialize($a);
echo 'after unserialize...<br/>';
var_dump($a);
?>*

*


On 11/6/07, Stu Hood <stuhoodwebmail.us> wrote:
>
> Did you enable the PHP serialized response writer in
your solrconfig.xml?
> It is not enabled by default.
>
> Thanks,
> Stu
>
>
> -----Original Message-----
> From: James liu <liuping.jamesgmail.com>
> Sent: Monday, November 5, 2007 9:03am
> To: solr-userlucene.apache.org
> Subject: Re: how to use PHP AND PHPS?
>
> i know it...but u try it,,u will find simlar question.
>
> On 11/5/07, Robert Young <bubblenutgmail.com> wrote:
> >
> > I would imagine you have to unserialize
> >
> > On 11/5/07, James liu <liuping.jamesgmail.com> wrote:
> > > i find they all return string....
> > >
> > > <?php
> > >   $url = '
> > >
> >
> http:/
/localhost:8080/solr/select/?q=solr&version=2.2&star
t=0&rows=10&indent=on&wt=php
> > > ';
> > >   var_dump(file_get_contents($url);
> > > ?>
> > >
> > >
> > > --
> > > regards
> > > jl
> > >
> >
>
>
>
> --
> regards
> jl
>
>
>


-- 
regards
jl
Re: how to use PHP AND PHPS?
user name
2007-11-06 08:36:17
What are the results of the two var_dumps?

dave

On Nov 5, 2007, at 10:06 PM, James liu wrote:

> first: i m sure i enable php and phps in my
solrconfig.xml
> two: i can't get answer.
>
> *phps:
> *<?php
> $url = '
> http://localhost
:8080/solr1/select/? 
>
q=2&version=2.2&start=0&rows=10&indent=on&am
p;wt=phps
> ';
> $a = file_get_contents($url);
> echo 'before unserialize....<br/>';
> var_dump($a);
> $a = unserialize($a);
> echo 'after unserialize...<br/>';
> var_dump($a);
> ?>*
>
> *
>
>
> On 11/6/07, Stu Hood <stuhoodwebmail.us> wrote:
>>
>> Did you enable the PHP serialized response writer
in your  
>> solrconfig.xml?
>> It is not enabled by default.
>>
>> Thanks,
>> Stu
>>
>>
>> -----Original Message-----
>> From: James liu <liuping.jamesgmail.com>
>> Sent: Monday, November 5, 2007 9:03am
>> To: solr-userlucene.apache.org
>> Subject: Re: how to use PHP AND PHPS?
>>
>> i know it...but u try it,,u will find simlar
question.
>>
>> On 11/5/07, Robert Young <bubblenutgmail.com> wrote:
>>>
>>> I would imagine you have to unserialize
>>>
>>> On 11/5/07, James liu <liuping.jamesgmail.com> wrote:
>>>> i find they all return string....
>>>>
>>>> <?php
>>>>   $url = '
>>>>
>>>
>> http://localhost:
8080/solr/select/? 
>>
q=solr&version=2.2&start=0&rows=10&indent=on
&wt=php
>>>> ';
>>>>   var_dump(file_get_contents($url);
>>>> ?>
>>>>
>>>>
>>>> --
>>>> regards
>>>> jl
>>>>
>>>
>>
>>
>>
>> --
>> regards
>> jl
>>
>>
>>
>
>
> -- 
> regards
> jl


Re: how to use PHP AND PHPS?
user name
2007-11-06 19:10:17
first var_dump result(part not all):

string(50506)
>
"a:2:{s:14:"responseHeader";a:3:{s:6:"st
atus";i:0;s:5:"QTime";i:2906;s:6:"params
";a:6:{s:6:"indent";s:2:"on";s:5:&q
uot;start";s:1:"0";s:1:"q";s:1:&quo
t;2";s:2:"wt";s:4:"phps";s:4:"
rows";s:2:"10";s:7:"version";s:3:&q
uot;
> 2.2";}}
>

two var_dump result:
bool(false)


On Nov 6, 2007 10:36 PM, Dave Lewis <dalewistikva.com> wrote:
> What are the results of the two var_dumps?
>
> dave
>
>
> On Nov 5, 2007, at 10:06 PM, James liu wrote:
>
> > first: i m sure i enable php and phps in my
solrconfig.xml
> > two: i can't get answer.
> >
> > *phps:
> > *<?php
> > $url = '
> > http://localhost
:8080/solr1/select/?
> >
q=2&version=2.2&start=0&rows=10&indent=on&am
p;wt=phps
> > ';
> > $a = file_get_contents($url);
> > echo 'before unserialize....<br/>';
> > var_dump($a);
> > $a = unserialize($a);
> > echo 'after unserialize...<br/>';
> > var_dump($a);
> > ?>*
> >
> > *
> >
> >
> > On 11/6/07, Stu Hood <stuhoodwebmail.us> wrote:
> >>
> >> Did you enable the PHP serialized response
writer in your
> >> solrconfig.xml?
> >> It is not enabled by default.
> >>
> >> Thanks,
> >> Stu
> >>
> >>
> >> -----Original Message-----
> >> From: James liu <liuping.jamesgmail.com>
> >> Sent: Monday, November 5, 2007 9:03am
> >> To: solr-userlucene.apache.org
> >> Subject: Re: how to use PHP AND PHPS?
> >>
> >> i know it...but u try it,,u will find simlar
question.
> >>
> >> On 11/5/07, Robert Young <bubblenutgmail.com> wrote:
> >>>
> >>> I would imagine you have to unserialize
> >>>
> >>> On 11/5/07, James liu
<liuping.jamesgmail.com> wrote:
> >>>> i find they all return string....
> >>>>
> >>>> <?php
> >>>>   $url = '
> >>>>
> >>>
> >> http://localhost:
8080/solr/select/?
> >>
q=solr&version=2.2&start=0&rows=10&indent=on
&wt=php
> >>>> ';
> >>>>   var_dump(file_get_contents($url);
> >>>> ?>
> >>>>
> >>>>
> >>>> --
> >>>> regards
> >>>> jl
> >>>>
> >>>
> >>
> >>
> >>
> >> --
> >> regards
> >> jl
> >>
> >>
> >>
> >
> >
> > --
> > regards
> > jl
>
>



-- 
regards
jl
Re: how to use PHP AND PHPS?
user name
2007-11-06 21:23:40
On Nov 6, 2007, at 8:10 PM, James liu wrote:

> first var_dump result(part not all):
>
> string(50506)
>>
"a:2:{s:14:"responseHeader";a:3:{s:6:"st
atus";i:0;s:5:"QTime";i: 
>>
2906;s:6:"params";a:6:{s:6:"indent";s:2:
"on";s:5:"start";s:1:"0";s: 
>>
1:"q";s:1:"2";s:2:"wt";s:4:&qu
ot;phps";s:4:"rows";s:2:"10";s: 
>> 7:"version";s:3:"
>> 2.2";}}
>>
>

This is exactly correct.

> two var_dump result:
> bool(false)
>

So, unserializing is failing.  Are you running from the
trunk or from  
a nightly?  There was a bug a couple of weeks ago that sent
back  
faulty serialized data.  It's fixed now.  It's possible this
is your  
issue.

dave


>
> On Nov 6, 2007 10:36 PM, Dave Lewis <dalewistikva.com> wrote:
>> What are the results of the two var_dumps?
>>
>> dave
>>
>>
>> On Nov 5, 2007, at 10:06 PM, James liu wrote:
>>
>>> first: i m sure i enable php and phps in my
solrconfig.xml
>>> two: i can't get answer.
>>>
>>> *phps:
>>> *<?php
>>> $url = '
>>> http://localhost
:8080/solr1/select/?
>>>
q=2&version=2.2&start=0&rows=10&indent=on&am
p;wt=phps
>>> ';
>>> $a = file_get_contents($url);
>>> echo 'before unserialize....<br/>';
>>> var_dump($a);
>>> $a = unserialize($a);
>>> echo 'after unserialize...<br/>';
>>> var_dump($a);
>>> ?>*
>>>
>>> *
>>>
>>>
>>> On 11/6/07, Stu Hood <stuhoodwebmail.us> wrote:
>>>>
>>>> Did you enable the PHP serialized response
writer in your
>>>> solrconfig.xml?
>>>> It is not enabled by default.
>>>>
>>>> Thanks,
>>>> Stu
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: James liu <liuping.jamesgmail.com>
>>>> Sent: Monday, November 5, 2007 9:03am
>>>> To: solr-userlucene.apache.org
>>>> Subject: Re: how to use PHP AND PHPS?
>>>>
>>>> i know it...but u try it,,u will find
simlar question.
>>>>
>>>> On 11/5/07, Robert Young <bubblenutgmail.com> wrote:
>>>>>
>>>>> I would imagine you have to
unserialize
>>>>>
>>>>> On 11/5/07, James liu
<liuping.jamesgmail.com> wrote:
>>>>>> i find they all return string....
>>>>>>
>>>>>> <?php
>>>>>>   $url = '
>>>>>>
>>>>>
>>>> http://localhost:
8080/solr/select/?
>>>>
q=solr&version=2.2&start=0&rows=10&indent=on
&wt=php
>>>>>> ';
>>>>>>  
var_dump(file_get_contents($url);
>>>>>> ?>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> regards
>>>>>> jl
>>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> regards
>>>> jl
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> regards
>>> jl
>>
>>
>
>
>
> -- 
> regards
> jl


Re: how to use PHP AND PHPS?
user name
2007-11-06 21:41:51
afternoon$B!$!$(Bi will update svn...and try the
newest...



On Nov 7, 2007 11:23 AM, Dave Lewis <dalewistikva.com> wrote:

>
> On Nov 6, 2007, at 8:10 PM, James liu wrote:
>
> > first var_dump result(part not all):
> >
> > string(50506)
> >>
"a:2:{s:14:"responseHeader";a:3:{s:6:"st
atus";i:0;s:5:"QTime";i:
> >>
2906;s:6:"params";a:6:{s:6:"indent";s:2:
"on";s:5:"start";s:1:"0";s:
> >>
1:"q";s:1:"2";s:2:"wt";s:4:&qu
ot;phps";s:4:"rows";s:2:"10";s:
> >> 7:"version";s:3:"
> >> 2.2";}}
> >>
> >
>
> This is exactly correct.
>
> > two var_dump result:
> > bool(false)
> >
>
> So, unserializing is failing.  Are you running from the
trunk or from
> a nightly?  There was a bug a couple of weeks ago that
sent back
> faulty serialized data.  It's fixed now.  It's possible
this is your
> issue.
>
> dave
>
>
> >
> > On Nov 6, 2007 10:36 PM, Dave Lewis
<dalewistikva.com> wrote:
> >> What are the results of the two var_dumps?
> >>
> >> dave
> >>
> >>
> >> On Nov 5, 2007, at 10:06 PM, James liu wrote:
> >>
> >>> first: i m sure i enable php and phps in
my solrconfig.xml
> >>> two: i can't get answer.
> >>>
> >>> *phps:
> >>> *<?php
> >>> $url = '
> >>> http://localhost
:8080/solr1/select/?
> >>>
q=2&version=2.2&start=0&rows=10&indent=on&am
p;wt=phps
> >>> ';
> >>> $a = file_get_contents($url);
> >>> echo 'before unserialize....<br/>';
> >>> var_dump($a);
> >>> $a = unserialize($a);
> >>> echo 'after unserialize...<br/>';
> >>> var_dump($a);
> >>> ?>*
> >>>
> >>> *
> >>>
> >>>
> >>> On 11/6/07, Stu Hood <stuhoodwebmail.us> wrote:
> >>>>
> >>>> Did you enable the PHP serialized
response writer in your
> >>>> solrconfig.xml?
> >>>> It is not enabled by default.
> >>>>
> >>>> Thanks,
> >>>> Stu
> >>>>
> >>>>
> >>>> -----Original Message-----
> >>>> From: James liu <liuping.jamesgmail.com>
> >>>> Sent: Monday, November 5, 2007 9:03am
> >>>> To: solr-userlucene.apache.org
> >>>> Subject: Re: how to use PHP AND PHPS?
> >>>>
> >>>> i know it...but u try it,,u will find
simlar question.
> >>>>
> >>>> On 11/5/07, Robert Young
<bubblenutgmail.com> wrote:
> >>>>>
> >>>>> I would imagine you have to
unserialize
> >>>>>
> >>>>> On 11/5/07, James liu
<liuping.jamesgmail.com> wrote:
> >>>>>> i find they all return
string....
> >>>>>>
> >>>>>> <?php
> >>>>>>   $url = '
> >>>>>>
> >>>>>
> >>>> http://localhost:
8080/solr/select/?
> >>>>
q=solr&version=2.2&start=0&rows=10&indent=on
&wt=php
> >>>>>> ';
> >>>>>>  
var_dump(file_get_contents($url);
> >>>>>> ?>
> >>>>>>
> >>>>>>
> >>>>>> --
> >>>>>> regards
> >>>>>> jl
> >>>>>>
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> regards
> >>>> jl
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>> --
> >>> regards
> >>> jl
> >>
> >>
> >
> >
> >
> > --
> > regards
> > jl
>
>


-- 
regards
jl
Re: how to use PHP AND PHPS?
user name
2007-11-07 00:42:55
same answer.

On Nov 7, 2007 11:41 AM, James liu <liuping.jamesgmail.com> wrote:

> afternoon$B!$!$(Bi will update svn...and try the
newest...
>
>
>
>
> On Nov 7, 2007 11:23 AM, Dave Lewis <dalewistikva.com> wrote:
>
> >
> > On Nov 6, 2007, at 8:10 PM, James liu wrote:
> >
> > > first var_dump result(part not all):
> > >
> > > string(50506)
> > >>
"a:2:{s:14:"responseHeader";a:3:{s:6:"st
atus";i:0;s:5:"QTime";i:
> > >>
2906;s:6:"params";a:6:{s:6:"indent";s:2:
"on";s:5:"start";s:1:"0";s:
> > >>
1:"q";s:1:"2";s:2:"wt";s:4:&qu
ot;phps";s:4:"rows";s:2:"10";s:
> > >> 7:"version";s:3:"
> > >> 2.2";}}
> > >>
> > >
> >
> > This is exactly correct.
> >
> > > two var_dump result:
> > > bool(false)
> > >
> >
> > So, unserializing is failing.  Are you running
from the trunk or from
> > a nightly?  There was a bug a couple of weeks ago
that sent back
> > faulty serialized data.  It's fixed now.  It's
possible this is your
> > issue.
> >
> > dave
> >
> >
> > >
> > > On Nov 6, 2007 10:36 PM, Dave Lewis
<dalewistikva.com> wrote:
> > >> What are the results of the two
var_dumps?
> > >>
> > >> dave
> > >>
> > >>
> > >> On Nov 5, 2007, at 10:06 PM, James liu
wrote:
> > >>
> > >>> first: i m sure i enable php and phps
in my solrconfig.xml
> > >>> two: i can't get answer.
> > >>>
> > >>> *phps:
> > >>> *<?php
> > >>> $url = '
> > >>> http://localhost
:8080/solr1/select/?
> > >>> q=2&version=
2.2&start=0&rows=10&indent=on&wt=phps
> > >>> ';
> > >>> $a = file_get_contents($url);
> > >>> echo 'before
unserialize....<br/>';
> > >>> var_dump($a);
> > >>> $a = unserialize($a);
> > >>> echo 'after
unserialize...<br/>';
> > >>> var_dump($a);
> > >>> ?>*
> > >>>
> > >>> *
> > >>>
> > >>>
> > >>> On 11/6/07, Stu Hood <stuhoodwebmail.us> wrote:
> > >>>>
> > >>>> Did you enable the PHP serialized
response writer in your
> > >>>> solrconfig.xml?
> > >>>> It is not enabled by default.
> > >>>>
> > >>>> Thanks,
> > >>>> Stu
> > >>>>
> > >>>>
> > >>>> -----Original Message-----
> > >>>> From: James liu
<liuping.jamesgmail.com>
> > >>>> Sent: Monday, November 5, 2007
9:03am
> > >>>> To: solr-userlucene.apache.org
> > >>>> Subject: Re: how to use PHP AND
PHPS?
> > >>>>
> > >>>> i know it...but u try it,,u will
find simlar question.
> > >>>>
> > >>>> On 11/5/07, Robert Young <
bubblenutgmail.com> wrote:
> > >>>>>
> > >>>>> I would imagine you have to
unserialize
> > >>>>>
> > >>>>> On 11/5/07, James liu <
liuping.jamesgmail.com> wrote:
> > >>>>>> i find they all return
string....
> > >>>>>>
> > >>>>>> <?php
> > >>>>>>   $url = '
> > >>>>>>
> > >>>>>
> > >>>> http://localhost:
8080/solr/select/?
> > >>>>
q=solr&version=2.2&start=0&rows=10&indent=on
&wt=php
> > >>>>>> ';
> > >>>>>>  
var_dump(file_get_contents($url);
> > >>>>>> ?>
> > >>>>>>
> > >>>>>>
> > >>>>>> --
> > >>>>>> regards
> > >>>>>> jl
> > >>>>>>
> > >>>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>> --
> > >>>> regards
> > >>>> jl
> > >>>>
> > >>>>
> > >>>>
> > >>>
> > >>>
> > >>> --
> > >>> regards
> > >>> jl
> > >>
> > >>
> > >
> > >
> > >
> > > --
> > > regards
> > > jl
> >
> >
>
>
> --
> regards
> jl




-- 
regards
jl
Re: how to use PHP AND PHPS?
user name
2007-11-07 01:04:23
i just decrease answer information...and u will see my
result(full, not
part)

*before unserialize....*
> string(433)
>
"a:2:{s:14:"responseHeader";a:3:{s:6:"st
atus";i:0;s:5:"QTime";i:0;s:6:"params&qu
ot;;a:7:{s:2:"fl";s:5:"Title";s:6:"
indent";s:2:"on";s:5:"start";s:1:&q
uot;0";s:1:"q";s:1:"2";s:2:"wt
";s:4:"phps";s:4:"rows";a:2:{i:0;s:
1:"2";i:1;s:2:"10";}s:7:"version&qu
ot;;s:3:"
>
2.2";}}s:8:"response";a:3:{s:8:"numFound
";i:28;s:5:"start";i:0;s:4:"docs";a
:2:{i:0;a:1:{s:5:"Title";d:ŵ»ùÑÇN-Gage»ù±¾Êý¾Ý;}i
:1;a:1:{s:5:"Title";d:Ë÷Äá°®Á¢ÐÅP908»ù±¾Êý¾Ý;}}}}&
quot;
>
> *after unserialize...*
> bool(false)
>

and i write serialize test code..

<?php
> $ar = array (
>     array('id' => 123, 'Title'=>
"ÖÐÎIJâÊÔ"),
>     array('id' => 123, 'Title'=>
"ÖйúÉϺ£"),
> );
>
> echo serialize($ar);
>
> ?>
>


and result is :

>
>
a:2:{i:0;a:2:{s:2:"id";i:123;s:5:"Title"
;s:12:"ÖÐÎIJâÊÔ";}i:1;a:2:{s:2:"id";i:12
3;s:5:"Title";s:12:"ÖйúÉϺ£";}}
>



*php* result is:

string(369) "array( 'responseHeader'=>array(
'status'=>0, 'QTime'=>0,
'params'=>array( 'fl'=>'Title', 'indent'=>'on',
'start'=>'0', 'q'=>'2',
'wt'=>'php', 'rows'=>array('2', '10'),
'version'=>'2.2')),
'response'=>array('numFound'=>28,'start'=>0,'docs'=
>array( array(
'Title'=>ŵ»ùÑÇN-Gage»ù±¾Êý¾Ý), array(
'Title'=>Ë÷Äá°®Á¢ÐÅP908»ù±¾Êý¾Ý)) ))"

it is string, so i can't read it correctly by php.


-- 
regards
jl
Re: how to use PHP AND PHPS?
user name
2007-11-07 07:30:35
On Nov 7, 2007, at 2:04 AM, James liu wrote:

> i just decrease answer information...and u will see my
result(full,  
> not
> part)
>
> *before unserialize....*
>> string(433)
>>
"a:2:{s:14:"responseHeader";a:3:{s:6:"st
atus";i:0;s:5:"QTime";i: 
>>
0;s:6:"params";a:7:{s:2:"fl";s:5:"T
itle";s:6:"indent";s:2:"on";s: 
>>
5:"start";s:1:"0";s:1:"q";s:1:
"2";s:2:"wt";s:4:"phps";s:4:&q
uot;rows";a: 
>>
2:{i:0;s:1:"2";i:1;s:2:"10";}s:7:"v
ersion";s:3:"
>>
2.2";}}s:8:"response";a:3:{s:8:"numFound
";i:28;s:5:"start";i:0;s: 
>>
4:"docs";a:2:{i:0;a:1:{s:5:"Title";d:ŵ»
ùÑÇN-Gage»ù±¾Êý¾Ý;}i:1;a:1: 
>>
{s:5:"Title";d:Ë÷Äá°®Á¢ÐÅP908»ù±¾Êý¾Ý;}}}}"
>>
>> *after unserialize...*
>> bool(false)
>>
>
> and i write serialize test code..
>
> <?php
>> $ar = array (
>>     array('id' => 123, 'Title'=>
"ÖÐÎIJâÊÔ"),
>>     array('id' => 123, 'Title'=>
"ÖйúÉϺ£"),
>> );
>>
>> echo serialize($ar);
>>
>> ?>
>>
>
>
> and result is :
>
>>
>>
a:2:{i:0;a:2:{s:2:"id";i:123;s:5:"Title"
;s:12:"ÖÐÎIJâÊÔ";}i:1;a:2: 
>>
{s:2:"id";i:123;s:5:"Title";s:12:"Ö
йúÉϺ£";}}
>>
>
>
>
> *php* result is:
>
> string(369) "array( 'responseHeader'=>array(
'status'=>0, 'QTime'=>0,
> 'params'=>array( 'fl'=>'Title',
'indent'=>'on', 'start'=>'0',  
> 'q'=>'2',
> 'wt'=>'php', 'rows'=>array('2', '10'),
'version'=>'2.2')),
>
'response'=>array('numFound'=>28,'start'=>0,'docs'=
>array( array(
> 'Title'=>ŵ»ùÑÇN-Gage»ù±¾Êý¾Ý), array(
'Title'=>Ë÷Äá°®Á¢ÐÅP908»ù±¾Êý 
> ¾Ý)) ))"
>
> it is string, so i can't read it correctly by php.
>
>


This part (after string(369)) is exactly what it you should
be seeing  
if you use the php handler, and it's what you get after you 

unserialize when using phps.

You can access your search results as:

$solrResults['response']['docs'];

In your example above, that would be:

array( array('Title'=>ŵ»ùÑÇN-Gage»ù±¾Êý¾Ý), array(
'Title'=>Ë÷Äá°®Á¢ÐÅ 
P908»ù±¾Êý¾Ý))

When using the php handler, you must do something like
this:

eval('$solrResults = ' .$serializedSolrResults . ';');

Then, as above, you can access
$solrResults['response']['docs'].

To sum up, if you use phps, you must unserialize the
results.  If you  
use php, you must eval the results (including some sugar to
get a  
variable set to that value).


dave



[1-9]

about | contact  Other archives ( Real Estate discussion Medical topics )