pucene/index 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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/pucene project 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
  • 点击次数: 2
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-12-30