bvdputte/kirby-bettersearch
最新稳定版本:2.1.3
Composer 安装命令:
composer require bvdputte/kirby-bettersearch
包简介
A search plugin for Kirby (v3+ that searches for full word combinations rather than just individual words.
README 文档
README
A search plugin for Kirby 3 that searches for full word combinations rather than just individual words.
Installation
- unzip master.zip as folder
site/plugins/kirby-bettersearchor git submodule add https://github.com/bvdputte/kirby-bettersearch.git site/plugins/kirby-bettersearchorcomposer require bvdputte/kirby-bettersearch
Usage
Instead of the default $pages search method, use $pages->bettersearch($querystring, $options) or $site->bettersearch($querystring, $options) instead.
Since we're looking for full query matches, following options have been removed:
- stopwords
- minlength
- words
customIndexer
If you need to manipulate the content somehow, you can now pass a customIndexer function into the bettersearch function to alter the content.
Disclaimer
This plugin is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please create a new issue.
License
It is discouraged to use this plugin in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.
统计信息
- 总下载量: 3.58k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 22
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-12-06