OK, thanks for the suggestion. Why do you recommend using JSON over simply using the built-in PHPSerializedResponseWriter?

I find using an interface that requires the data to be parsed to be inefficient (this would include the aforementioned PHPSerializedResponseWriter as well). Wouldn't it be far better to use some standard data structure that is sent as a bit stream?

Ben

On 9/16/2010 11:38 AM, Thomas Joiner wrote:
If you wish to interface to Solr from PHP, and decide to go with Yonik's
suggestion to use JSON, I would suggest using
http://code.google.com/p/solr-php-client/

It has served my needs for the most part.

On Thu, Sep 16, 2010 at 1:33 PM, Yonik Seeley<yo...@lucidimagination.com>wrote:

On Thu, Sep 16, 2010 at 2:30 PM, onlinespend...@gmail.com
<onlinespend...@gmail.com>  wrote:
  I am planning on creating a website that has some SOLR search
capabilities
for the users, and was also planning on using PHP for the server-side
scripting.

My goal is to find the most efficient way to submit search queries from
the
website, interface with SOLR, and display the results back on the
website.
  If I use PHP, it seems that all the solutions use some form of character
based stream for the interface.  It would seem that using a binary
representation, such as javabin, would be more efficient.

If using javabin, or some similar efficient binary stream to interface
SOLR
with PHP is not possible, what do people recommend as the most efficient
solution that provides the best performance, even if that means not using
PHP and going with some other alternative?
I'd recommend going with JSON - it will be quite a bit smaller than
XML, and the parsers are generally quite efficient.

-Yonik
http://lucenerevolution.org  Lucene/Solr Conference, Boston Oct 7-8

Reply via email to