pucene/index
Composer 安装命令:
composer require pucene/index
包简介
Index package for pucene.
README 文档
README
The index is the main entry point for pucene. It analyses, stores and searches for documents.
To store the documents it uses a driver which is independent and the reference implementation is done in pucene/dbal-driver.
This is a subtree split of the
pucene/puceneproject create issues in the main repository.
Usage
<?php use Pucene\Analysis\StandardAnalyzer; use Pucene\Index\Driver\MemoryDriverFactory; use Pucene\Index\PuceneIndexFactory; use Schranz\Search\SEAL\Schema\Index; use Schranz\Search\SEAL\Schema\Field; $driverFactory = new MemoryDriverFactory(); $indexFactory = new PuceneIndexFactory( $driverFactory, new StandardAnalyzer(), ); $index = $indexFactory->create(new Index('blog', [ 'id' => new Field\IdentifierField('id'), 'title' => new Field\TextField('title'), ]));
统计信息
- 总下载量: 18
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-12-30