matthewbdaly/zendsearch

A fork of zendframework/zendsearch, with some tweaks to make it work in PHP 7

0.0.3 2019-09-28 11:03 UTC

This package is auto-updated.

Last update: 2024-03-29 00:03:20 UTC


README

Build Status Coverage Status

Fork of zendframework/zendsearch.

The goal of this project is primarily to maintain a version of the original package that will work on newer PHP versions. It's not to:

  • Add any additional functionality
  • Maintain any sort of compatibility with Lucene
  • Extend the scope of the original in any way

As such, any pull requests that do this WILL be rejected. However, if you want to use this project as a starting point for your own fork, be my guest.

However, in the long term I'd like to improve the quality of the package. As such, pull requests that do the following are welcome:

  • Fix gaps in test coverage
  • Fix potential errors identified by Psalm
  • Fix any PSR 2 code style issues
  • Updates to DocBlocks

Why are you doing this?

While the original package has been abandoned and they recommend using something like Elasticsearch instead, that is often overkill for many sites. There's teamtnt/tntsearch, but that lacks features such as the ability to index Powerpoint documents. The main project I work on professionally at time of writing is an example of a site that may benefit from this package, in that it's arguably too small to be worth bothering with Elasticsearch, but using relational databases to search it is inadequate.

Basically, there is a use case for a pure PHP search solution with no dependencies, but there exist very few other suitable implementations, and this was an existing package that could be forked and updated somewhat, and that's good enough for me. I don't have the sort of specialist knowledge in Lucene necessary to develop this further, but I can update it to work in newer PHP versions and maybe fix some issues with the code base.

How do I use this?

Refer to the original Zend documentation. I didn't write this code originally, and am maintaining this fork merely because I think it's potentially useful for me, so I can't offer any real support for it.