Solr PHP client vs file_get_contents?

Posted by noname on Stack Overflow See other posts from Stack Overflow or by noname
Published on 2009-12-15T13:47:39Z Indexed on 2010/04/05 7:33 UTC
Read the original article Hit count: 376

Filed under:
|
|

I am using PHP to access Solr and I wonder one thing.

Why should I use Solr PHP client when I can use:

$serializedResult = file_get_contents(
                      'http://localhost:8983/solr/select?q=niklas&wt=phps');

to get the result in arrays and then print them out? I don't really get the difference. Are there any richer features with the PHP client?

© Stack Overflow or respective owner

Related posts about php

Related posts about solr