lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <>
Subject Re: SOLR interface with PHP using javabin?
Date Thu, 16 Sep 2010 23:16:54 GMT
  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?


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
> It has served my needs for the most part.
> On Thu, Sep 16, 2010 at 1:33 PM, Yonik Seeley<>wrote:
>> On Thu, Sep 16, 2010 at 2:30 PM,
>> <>  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
>>> 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
>>  Lucene/Solr Conference, Boston Oct 7-8

View raw message