eliasfernandez/phphinder
最新稳定版本:v0.1.10-beta
Composer 安装命令:
composer require eliasfernandez/phphinder
包简介
A PHP powered lightweight search engine
README 文档
README
A lightweight and modular search engine built in PHP.
Table of Contents
About
PHPhinder is an open-source, lightweight, and modular search engine designed for PHP applications. It provides powerful search capabilities with a focus on simplicity, speed, and extensibility.
Features
- Full-text search for indexed documents.
- Support for advanced queries, including prefix queries, AND/OR/NOT combinations, and field-specific searches.
- Lightweight and efficient, with minimal dependencies.
- Easy integration with Symfony or other PHP frameworks.
- Highly extensible, allowing customization of query parsers and indexers.
- Fuzzy search. If no exact matches are found typo tolerance search is triggered
Installation
Install PHPhinder via Composer:
composer require eliasfernandez/phphinder
Usage
Here’s a simple example to demonstrate PHPhinder in action:
use PHPhinder\Index\JsonStorage; use PHPhinder\SearchEngine; $storage = new JsonStorage('var'); $engine = new SearchEngine($storage); $engine->addDocument(['_id' => 1, 'title' => 'Hi', 'text' => 'Hello world!']); $engine->flush(); $results = $engine->search('Hello'); print_r($results[1]->getDocument());
Configuration
PHPhinder offers several configuration options, including custom analyzers, tokenizers, and more. Refer to the manual for detailed instructions.
Contributing
Contributions are welcome! Please review the contribution guidelines before submitting pull requests.
License
PHPhinder is open-source software licensed under the MIT license.
统计信息
- 总下载量: 86
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 19
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: mit
- 更新时间: 2024-12-04