API
Apache Solr PHP Extension
The Apache Solr PECL extension is a light-weight, feature-rich library that allows developers using Apache Solr via PHP to communicate easily and efficiently with the Solr web service using an object-oriented API.
The Apache Solr extension is an extremely fast, light-weight, feature-rich library that allows PHP developers to communicate easily and efficiently with Apache Solr server instances using an object-oriented API.
Haystack for Django
Haystack provides modular search for Django. It features a unified, familiar API that allows you to plug in different search backends (such as Solr, Whoosh, Xapian, etc.) without having to modify your code.
Flash Client: solr-sunspot
Sunspot is a Flash Solr client written in Flex 3.0. Solr is a powerful open source search server based on Lucene. Generally speaking, Solr indexes documents via XML input and accepts queries for its indexed data via HTTP GET and POST requests. You can find more information on solr at apache.org.
Minig's Solr Client
MiniG is a webmail for the OBM groupware solution which contains a solr client.
solrpy
solrpy is a python client for solr, an enterprise search server built on top of lucene. solrpy allows you to add documents to a solr instance, and then to perform queries and gather search results from solr using your favorite programming language--python.
url: http://code.google.com/p/solrpy/
Django Solr
Django Solr search is a Django pluggable for rapidly integrating Solr search into a Django Application. It was originally written for The Washington Times. Readers where complaining that they were never able to find relevant content and they weren't given the tools to narrow down their search. With some of our past experiences with Solr it seemed like the obvious choice for this type of enterprise search concept.
Post Multiple Files to a Solr Server
This shell script will post all xml files found in the /exports/xml directory to a solr installation on the localhost. The xml files must end with 'xml'. Once the xml file is posted the file is renamed added the date as a suffix.
Solr Delete Post for Shells
This script is used to delete entries from a solr installation. In this case the delete query is 'url:http*' which is and record which contains http* in the url field. Be sure to change this portion of the code to fit your needs.
Generic PHP Client
define("DEFAULT_URL","http://solr.myhost.com:8080/solr/select");
define("DEFAULT_ROWS","15");
define("DEFAULT_FIELDLIST","score,id,title,url,type,created_date,modified_date,icon,logo");
define("DEFAULT_SORT","score desc");
// instantiate a solr class
$s = new solr();
$s->query("google AND microsoft");
/* solr client class definition */
class solr{
public $hostname;
public $queryString;
public $serializedResult;
public $rows;
public $fieldList;
function __construct ($hostname=DEFAULT_URL){
SolrJ
Solrj is a robust Java client for adding, deleting and updating documents with Solr. Solrj includes an option to access an embedded solr instance without the need to run an HTTP server.
URL:http://wiki.apache.org/solr/Solr1.3
Author: unknown