Search plugin does not seem to find words with 4 characters or less

Post Reply
barthusz
Jr. Bludit
Posts: 4
Joined: Sat Nov 24, 2018 1:22 pm

Hi,

I noticed that the (frontend) search plugin does not seem to find words with 4 characters or less. Is there a way to change this? I just use the default blog theme in Dutch language by the way.
Looking forward to your reply and best regards,

Bart
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

You can try to modify the following line in the plugin Search:

https://github.com/bludit/bludit/blob/m ... n.php#L194

I'm not shure how accurat the results will be.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
barthusz
Jr. Bludit
Posts: 4
Joined: Sat Nov 24, 2018 1:22 pm

Thanks for your quick reply!
I tried it but it did not work unfortunately. Still no results.
But again; thanks for looking!
User avatar
diego
Site Admin
Posts: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

Hi,
try to change this value 5 for 3.
https://github.com/bludit/bludit/blob/m ... n.php#L228

Also, the amount of words per page is limited here, this means the search will create a cache for the first 800 words from the post.
https://github.com/bludit/bludit/blob/m ... in.php#L13

After you do the changes, you need to deactivate and activate the plugin to regenerate the chache.

Regards
Post Reply