Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Latest commit

 

History

History
67 lines (50 loc) · 2.7 KB

README.md

File metadata and controls

67 lines (50 loc) · 2.7 KB

Apache Solr PHP client

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.