Closed rstacruz closed 9 years ago
Is this the correct way to save/load indices? The documentation doesn't say much about this.
var idx = lunr(...) var data = JSON.stringify(idx)
var idx = lunr.Index.load(JSON.parse(data))
Yep, thats the right way of loading/serialising. The documentation could be a little clearer on this, I really need to spend some time on writing guides for common things like this.
Is this the correct way to save/load indices? The documentation doesn't say much about this.