On 8/17/07, Donovan Jimenez <[EMAIL PROTECTED]> wrote:
> In regards to 1.3 PHP based response writers:
>
> I did see this and included two response interpreters for these in my
> source (though I wasn't developing against Solr 1.3 so they are more
> stubs than useable).  The Solr_Response follows a factory pattern and
> automatically chooses the correct Response subclass based on the
> Content-Type of the HTTP response header. Each subclass then tries to
> provide the same method of access to the different parts of the
> response.  Both JSON and XML are fully implemented (I found
> interpretting JSON search responses was fastest for search responses
> - not to mention the slightly smaller data size)

Solr has multiple response formats so the client can pick the most convenient.
There's increased maintenance associated with accepting multiple on
the client side.

-Yonik

Reply via email to