reprovinci/solr-php-client

A PHP library for indexing and searching documents within an Apache Solr installation.

v1.0.3 2014-04-24 14:32 UTC

This package is not auto-updated.

Last update: 2024-11-23 14:15:17 UTC


README

Build Status

A PHP library for indexing and searching documents within an Apache Solr installation.

This client library was forked from Donovan Jiménez' Google Code project: http://groups.google.com/group/php-solr-client
Before that, it was hosted in Solr's issue tracker: https://issues.apache.org/jira/browse/SOLR-341

What is Apache Solr?

Solr is an open source enterprise search server based on the Lucene Java search library, with XML/HTTP and JSON APIs, hit highlighting, faceted search, caching, replication, a web administration interface and many more features. It runs in a Java servlet container such as Tomcat. For more information about Solr, please see the Solr Web Page. The project's Wiki is the de facto starting point for information on how to install and configure Solr for your individual needs.

Features

  • Quering, deleting, optimizing.
  • Support for both Solr 3 and Solr 4 through compatibility layers.
  • Support for soft commit with Solr 4.

Installation

Composer (PHP 5 >= 5.3.0)

Just require reprovinci/solr-php-client:

{
  "require": {
    "reprovinci/solr-php-client": "1.0.x"
  }
}

Testing

The code is automatically tested by Travis after each push. Travis currently reports the following build status: Build Status.

If you want to test the code yourself, follow the following instructions:

Composer (PHP 5 >= 5.3.0)

Just install dev dependencies and run PHPUnit:

composer install --dev
bin/phpunit tests

Credits

  • Thanks to @GZyl for fixing <add> compatibility between Solr versions. #7

Further Information

Please see Frequently Asked Questions

Or, if you have usage questions, try posting to the USER DISCUSSION GROUP.

Disclaimer

This PHP library is not part of the Apache Solr project, nor is it maintained by the Apache Software Foundation. All linked Apache Solr documentation or logos remain the sole property of the Apache Solr project, its authors, and the Apache Software Foundation.