Registry / utility / zendframework-zendsearch

zendframework-zendsearch

JSON →
library2.0.0rc6phppackagistunverified

A general purpose text search engine written entirely in PHP 5.

composer require zendframework/zendsearch
INSTALL
IMPORT
SIG · ZENDFRAMEWORK-ZEND
Z
zendframework-zendsearch
utilityphpv2.0.0rc6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Lucene
use ZendSearch\Lucene\Lucene;

Create a Lucene index and search it

use ZendSearch\Lucene\Lucene; $index = Lucene::create('/path/to/index'); $doc = new \ZendSearch\Lucene\Document(); $doc->addField(\ZendSearch\Lucene\Document\Field::Text('title', 'Example')); $index->addDocument($doc); $index->commit(); $hits = $index->find('example'); echo $hits->count();
Debug
Known issues
breakingThis package is based on Zend Framework 1 and may not be compatible with PHP 8+.
fix
Consider using a modern alternative like Meilisearch or Elasticsearch.
affects: >=2.0.0
Upgrade
Version history
2.0.0rc6latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
22
Resources
zendframework-zendsearch — pip install zendframework-zendsearch · libregistry