yeraydiazdiaz / lunr.py

A Python implementation of Lunr.js 🌖
http://lunr.readthedocs.io
MIT License
188 stars 16 forks source link

Update existing index? #79

Closed chrisspen closed 4 years ago

chrisspen commented 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?

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()?

yeraydiazdiaz commented 4 years ago

Hi @chrisspen, that's right, indices need to be created with the complete set of documents.

Uzay-G commented 3 years ago

It'd be nice if it was possible to update the indexes instead of regenerating them.