Skip to content

Kirby plugin which searches for the "sentence" instead of each term separately.

License

Notifications You must be signed in to change notification settings

bvdputte/kirby-bettersearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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-bettersearch or
  • git submodule add https://github.com/bvdputte/kirby-bettersearch.git site/plugins/kirby-bettersearch or
  • composer 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

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

MIT

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.

About

Kirby plugin which searches for the "sentence" instead of each term separately.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages