How does Fuse.js search work? Cannot search newly added file #716
-
Hello, I have few thousand files already, added new file and can't search it even after several restarts; how does it work? Should remove some temporary files? Should I wait after restart? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
In short.
So, if you're adding new pages, you should reload the search page for reloading the index.json.
|
Beta Was this translation helpful? Give feedback.
-
Thank you for confirming Razon Yang. Yes, I suspected caching, it doesn't happen in production Netlify possibly because I use "must revalidate" HTTP headers. Only locally. My |
Beta Was this translation helpful? Give feedback.
In short.
index.json
which contains all pages, i.e. https://hbs.razonyang.com/v1/v1/en/search/index.json.index.json
once per page load, parse the user input, then display the search result.So, if you're adding new pages, you should reload the search page for reloading the index.json.
If it's still not working, please check whether your new pages are included in
index.json
.