leo-buneev / vuepress-plugin-fulltext-search

Adds full-text search capabilities to your vuepress site with a help of flexsearch library.
MIT License
93 stars 23 forks source link

[Feature Request] Add options to configure flexsearch #43

Closed echojoshchen closed 3 years ago

echojoshchen commented 3 years ago

Flexsearch allows configuring the tokenizer, split pattern, and encoding. Adding support for these options will allow the plugin to be configured.

Example:

module.exports = {
    plugins: [
        ['fulltext-search', {
            encode: 'icase',
            tokenize: 'full',
            split: /\s+/,
        }],
    ],
};