Download the PHP package bvdputte/kirby-bettersearch without Composer
On this page you can find all versions of the php package bvdputte/kirby-bettersearch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bvdputte/kirby-bettersearch
More information about bvdputte/kirby-bettersearch
Files in bvdputte/kirby-bettersearch
Package kirby-bettersearch
Short Description A search plugin for Kirby (v3+ that searches for full word combinations rather than just individual words.
License MIT
Homepage https://github.com/bvdputte/kirby-bettersearch/
Informations about the package kirby-bettersearch
Kirby Bettersearch plugin
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.