Brisa, You want to use the 'wt=json' parameter, in your query (see the Solr section of http://docs.basho.com/riak/latest/dev/using/search/ ) So, your request would be: http://127.0.0.1:10018/solr/index_bucket/select?q=key:Value&wt=json
(As a side note, in HTTP terminology, the 'Content-Type: application/json' header describes the format of your _request_, not the response). On Wed, May 7, 2014 at 1:41 PM, Brisa Anahí Jiménez Flores < [email protected]> wrote: > Hi! > > I've riak-1.4.7. > > I've made a HTTP API request, but I would like to know how can I get a > json response, could anybody help me a little bit, please? > > Request: > > GET > http://127.0.0.1:10018/solr/index_bucket/select?q=key:Value > Content-Type: application/json > > And I get an xml response body. > > Thank you very much! > > > > _______________________________________________ > riak-users mailing list > [email protected] > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > >
_______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
