You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Sohan Kalsariya <so...@gmail.com> on 2014/03/24 08:05:24 UTC

how to generate json response from the php solarium ?

How can i get the json response from solr ?
I mean how can i get response of the searched results in json format
and print it in solarium php code ?

-- 
Regards,
*Sohan Kalsariya*

Re: how to generate json response from the php solarium ?

Posted by Gora Mohanty <go...@mimirtech.com>.
On 24 March 2014 12:35, Sohan Kalsariya <so...@gmail.com> wrote:
> How can i get the json response from solr ?
> I mean how can i get response of the searched results in json format
> and print it in solarium php code ?

Adding wt=json to the query will get you Solr results in JSON format.
Please refer to the Solarium documentation for how to print the
results.

Regards,
Gora