Closed seantanly closed 7 years ago
I'm not sure why that method is marked as private, I can't think of any reason why it should be. Perhaps I was trying to protect people from calling build
within the function passed to the lunr
convenience helper?
PR's welcome btw 😉
I've merged your changes and pushed a new release 2.1.3.
Thanks for taking the time to open the issue and send the PR!
Thanks for making the new release! It will be perfect when the JSDoc for Builder gets updated. :)
Was likely just a caching issue, I'm pretty sure the docs are re-built and published by travis after a build on master. It's showing up for me now anyway, let me know if you still don't see it.
You're right, force refreshing my browser shows the latest version. 👍
I have a large number of documents that is pulled async from local storage that needs to be indexed for search. While building lunr.Index, I would like to pull the documents out by smaller chunks instead of everything into memory to make use of the convenience index creation function
lunr
.With the removal of mutable index, and the function
lunr
being synchronous, I would need toBuilder.build()
function to be officially supported public API, to enable async building of thelunr.Index
.https://github.com/olivernn/lunr.js/blob/e2031f44f3b852f5821156cc2d966b972802e649/lib/builder.js#L272