Page 1 of 1

File bltsearch.json is out of sync

Posted: Mon Dec 12, 2022 4:04 pm
by philidormassy
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 :)

Re: File bltsearch.json is out of sync

Posted: Tue Dec 13, 2022 9:57 am
by philidormassy
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...

Re: File bltsearch.json is out of sync

Posted: Sun Dec 18, 2022 12:12 pm
by Edi
Which theme uses this file?