Omar Shaban d66fc62b2e dev docker
2021-07-29 10:30:11 +02:00
2021-07-29 10:30:11 +02:00
2020-09-09 12:11:04 +02:00
2020-07-12 11:25:19 +02:00
2018-10-02 23:03:03 +02:00
2020-09-09 12:16:23 +02:00
2020-09-09 10:22:17 +02:00
2020-07-12 11:14:35 +02:00
2020-09-09 11:46:04 +02:00
2020-07-12 12:18:27 +02:00
2018-10-02 23:18:36 +02:00
2014-06-23 08:41:39 +02:00
2021-07-29 10:30:11 +02:00
2021-07-29 10:30:11 +02:00
2018-10-02 23:15:27 +02:00
2019-06-02 23:59:06 +02:00
2020-09-09 12:16:34 +02:00
2018-10-02 23:18:36 +02:00
2018-10-02 23:03:03 +02:00
2021-07-29 10:30:11 +02:00
2018-10-02 23:15:27 +02:00
2018-10-02 23:15:27 +02:00
2018-10-02 22:27:28 +02:00
2018-10-02 23:18:36 +02:00

PHP extension for communicating with Apache Solr Server 4.0+

Build Status Coverage Status

The Apache Solr PHP extension is an extremely fast, light-weight, feature-rich library that allows PHP applications to communicate easily and efficiently with Apache Solr server instances using an object-oriented API.

This version of the extension requires Apache Solr Server at least version 4.0.

Please refer to https://www.php.net/manual/en/book.solr.php and README.* for more information

Installation

This library requires curl and libxml2 development packages and php extensions

For Debian/Ubuntu/Mint

    sudo apt-get install php5-curl libcurl4-gnutls-dev libxml2 libxml2-dev

For RHEL/Fedora/CentOS/Scientific linux

    sudo yum install libxml2-devel curl-devel php-curl

Please make sure to install them before proceeding to the compilation process

    phpize
    ./configure
    make
    make test
    sudo make install

more details on README.INSTALLATION

Development Environment

  • add a bash alias as
alias solr='make -f dev/Makefile'
  • start development cluster
solr start
  • stop development cluster
solr stop
  • Rebuild docker container image and restart
solr clean-restart

Contributions

All forms of contributions are welcome! Whether contributing to tests, or the source.

Running Tests

Types of tests

  1. Tests that do not require a Solr Server (some of them use fixture files)
  2. Requires a running server with cores present and populated with data.

There is a configuration file for the test suite, located at tests/test.config.inc It contains the fixture file definitions and other configurations for the Solr Server to be used for testing.

To run the type 2 tests, you'll need docker to run the test server using the following command:

docker run -p 8983:8983 --name solr5 -t omars/solr53

PHPQA Guide: https://qa.php.net/write-test.php

make test

How to Report Bugs

Please report bugs to https://bugs.php.net

If you experience a crash due to a segmentation fault, please follow the instructions on the link below to get a gdb backtrace and then submit the trace in your bug report as well

https://bugs.php.net/bugs-generating-backtrace.php

Thank you for using PHP

Description
⚠️ ARCHIVED: Original GitHub repository no longer exists. Preserved as backup on 2026-01-22T16:24:09.363Z
Readme 2.4 MiB
Languages
C 80.8%
PHP 17.8%
Makefile 0.5%
JavaScript 0.4%
M4 0.3%
Other 0.1%