Closed chrisspen closed 4 years ago
Looking at the code in __main__.py, it looks like an index has to be created in a batch, and can't be incrementally updated. Is this correct?
__main__.py
Is there any way to add a new document to an index without having to retrieve all documents and pass them in as a list to lunr()?
lunr()
Hi @chrisspen, that's right, indices need to be created with the complete set of documents.
It'd be nice if it was possible to update the indexes instead of regenerating them.
Looking at the code in
__main__.py
, it looks like an index has to be created in a batch, and can't be incrementally updated. Is this correct?Is there any way to add a new document to an index without having to retrieve all documents and pass them in as a list to
lunr()
?