I’m testing the Dawn theme on my site, I noticed an extreme slowness when browsing the pages and changing the theme color with the appropriate button on the homepage, I noticed this console error, too many articles?
VM16453 main.min.js:1 Uncaught DOMException: Failed to execute 'setItem' on 'Storage': Setting the value of 'dawn_search_index' exceeded the quota.
Hey @giacomosilli, the reason is browsers have certain limit for local storage and when your site has lots of posts, it exceeds the quota for storing the index of posts. An option to disable searching from post content was added in the latest version of Dawn. Try following steps to fix the issue.
You can still use the search feature, you just need to disable the search from post content. When you have lots of posts including their content, your browser local storage limit easily exceeds. So the new option will just disable searching from content, but searching from post title will still be available.
Hey! There are some custom code here in main.js. Also make sure you delete this line if you removed the previous code.
And for the markup, you might want to look in partials/header.hbs. Search for data-modal="search" in the file. There will be couple of instances used for members related logic.
Hello! Instead of creating a new topic, I’ll ask here. Can you please tell me how to make a search in a Dawn theme for Cyrillic characters (Russian)? Tried to figure it out on my own but got stuck on elasticlunr.js.
Hey @budaev, here is a repo for elasticlunr.js language support. And here is a helpful comment from the maintainer for integrating different language than English in the library.
The line that initializing elasticlunr can be found here.