File bltsearch.json is out of sync

Post Reply
philidormassy
Jr. Bludit
Posts: 2
Joined: Mon Dec 12, 2022 3:59 pm

Hi,

This file exists under bl-content/uploads/, but contains an old version of the posts, so the search box shipped with the theme blekathlon provides inaccurate results.

So my question is "how to keep bltsearch.json in sync" ?
(I'm using the latest stable release, 3.14.1)

Thanks in advance :)
philidormassy
Jr. Bludit
Posts: 2
Joined: Mon Dec 12, 2022 3:59 pm

It turns out that bltsearch.json is a theme-specific file, and that the code to update it is inside theme/init.php. It doesn't work too well however, since the condition for update is "if(count($pubList) != $searchJson->count() )" which fails for posts update. Not sure if I would "fix" it anyway, because refresh at post creation isn't bad either. Nobody sees this forum post anyway, but, well...
Last edited by philidormassy on Tue Dec 13, 2022 10:50 am, edited 1 time in total.
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:

Which theme uses this file?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Post Reply