Closed wrvhage closed 8 years ago
On my laptop it takes about 700ms in Chrome to fetch the index.json and create lunr indexes from it.
If loading takes too long we could use Web workers (see http://renditionprotocol.blogspot.nl/2014/02/first-attempt-at-web-worker-for-lunarjs.html) to create lunr indices in the background.
Or switch to http://elasticlunr.com/, they themselves say they are faster than lunr.js .
We have now implemented this using regexp, for filtering. Lunr is not needed IMO.
If this does not scale, try pre-indexing. Otherwise, add new issue for server-side index.