Which is the better client for Solr + PHP?
I have tw开发者_运维技巧o options
- http://www.php.net/manual/en/book.solr.php
- http://code.google.com/p/solr-php-client/
I read it somewhere that that 2) use JSON as output types whereas 1) use XML doc.
- Isn't that a property of Solr which returns doc both in JSON and XML?
- What other features do I have to consider before deciding?
So, I would actually recommend the other option, http://code.google.com/p/solr-php-client/ because it is the core PHP library used by the Drupal Solr plugin.
I think, like so many things, YMMV (Your Milage May Vary). Looks like you may have had your question answered here: Useful Thread
I have used the PECL Solr PHP extension and it worked nicely.
I'm considering using Solarium, because - while it is framework agnostic - it seams easy to integrate it in a Zend Framework project.
精彩评论