承接 pragma-framework/search 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

pragma-framework/search

最新稳定版本:1.17.0

Composer 安装命令:

composer require pragma-framework/search

包简介

A simple Pragma module which can help to index and search text in Pragma Framework

README 文档

README

A simple Pragma module which can help to index and search text in Pragma Framework.

Installation

In composer.json add:

require {"pragma-framework/search": "dev-master"}

Config

Pragma\Search use a stemmer (wamania/php-stemmer) in order to extends the search to other words with the same root.

To handle your language, you can specify the lang of your text:

define('STEMMER_LANGUAGE', 'French');

By default, the stemmer works with "English"

And define:

define('PRAGMA_MODULES','core,search');

For CLI indexation.

Define your own min length for words the system should index

By default, the min length is 3 characters. But you can define a custom constant named PRAGMA_SEARCH_MIN_WORD_LENGTH in order to change this behavior.

Skip the contexts during the indexation

If you don't aim to display the context of a result coming from the search, you can skip the contexts during the indexation by setting PRAGMA_SEARCH_SKIP_CONTEXT to true.

CLI exec

php public/index.php indexer:run

or

php public/index.php indexer:rebuild

统计信息

  • 总下载量: 6.02k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-06-05