Bludit: searching for partial article title returns no results

Created on 27 Jun 2020  路  3Comments  路  Source: bludit/bludit

Describe your problem

First time looking at bludit; interesting idea. Playing with the demo site however I noticed that the search functionality is rather limited. Unless you search for the full post title it won't be found. Searching for content within articles seems to work as far as I've tested.

Steps to reproduce the problem

Bludit version

3.12.0 (demo site)

Most helpful comment

Hi, there is a limitation with the characters, 5 is the min.
I will improve it.

All 3 comments

Hi, there is a limitation with the characters, 5 is the min.
I will improve it.

I also noticed I couldn't have any result searching my pages, then by exploring the code I just changed value 5 to 4 in /bl-plugins/search/plugin.php

        // Inlcude Fuzz algorithm
        require_once($this->phpPath().'vendors/fuzz.php');
        $fuzz = new Fuzz($cache, 10, 1, true);
        $results = $fuzz->search($text, 4);

It now gives lot more expected results. I tried with 3 but then it seems to have too much results, but expected results seem to still be on top of the page so it works I guess. It is just my workaround in case it helps.

I made some change in the search plugin, now is possible to set up the min chars from the admin panel.
https://github.com/bludit/bludit/commit/2517f0d1818fd350a916bcf343b5ccbd622a776b#diff-6b8d16cfa24497431c021e860d5ee7e5

Was this page helpful?
0 / 5 - 0 ratings