You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear Developer(s)
I use your codes in my mobile app. You helped me to much.
Nowadays I have a new problem. In your "search.html" example lunr_index.js database must be fully loaded to search and this slows down searching. My database is about 15 mb and it will get bigger and bigger in time. Will you help me to solve this problem. In my opinion, For increasing search speed, lunr_index.js database would be load after clicking search. (Sorry for my English).
Thanks in advance.
The text was updated successfully, but these errors were encountered:
There are several possible solutions. One is to load the search index asynchronously and only show or enable the search button once the index is loaded. You could also employ a number of other performance enhancing techniques such as prefetching the index. Here's an article with some performance enhancing ideas.
But 15 MB is awfully big, especially if you are serving mobile users. If you are indexing the full content of each page, consider just indexing the meta description instead. That should save considerable space. Just make sure your descriptions include the likely keywords that users would enter to discover each page.
If you've already done all that you can to shrink the index and it's still 15 MB, then it may be time to consider employing a search-as-a-service solution like Elasticsearch or Algolia.
Dear Developer(s)
I use your codes in my mobile app. You helped me to much.
Nowadays I have a new problem. In your "search.html" example lunr_index.js database must be fully loaded to search and this slows down searching. My database is about 15 mb and it will get bigger and bigger in time. Will you help me to solve this problem. In my opinion, For increasing search speed, lunr_index.js database would be load after clicking search. (Sorry for my English).
Thanks in advance.
The text was updated successfully, but these errors were encountered: