Q:

php of jquery to access solr?

im a beginner in using solr.
i know that you can either use ajax solr or solr-php-client to get the search results from solr.
but which should i use or are there occasions you have to choose one of them?
for example, which one is a better solution for autocompletion and which one is better for search content in threads?
would appreciate if someone could shed a light on this.

A:

Use PHP (or another server side language) for essential functionality.
Use client side JS for optional extras.
Build on stuff that works.

