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?
I think because of following reasons:
All issues are the headache of these pre-made scripts and frameworks. So if there is a solution for certain thing, i would recommend you to go with that rather than doing everything from your own.
Also since these scripts and frameworks have good community support, there are lesser bugs,
security issues and more.