File bltsearch.json is out of sync
-
- 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
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
-
- 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.