I've been trying out updating and deleting documents from the index but seems like that is an issue?
doc = Document(text=txt)
simple_index.insert(doc)
but this uses the nodeparser to break the doc down. Now if I want to do update/delete, the original doc, it seems I can't because the docstore has only nodes but I have only document objects.
# update
doc.text = "how to make wealth = build a startup"
simple_index.update(doc) # fails silently because delete fails (this works by deleting and inserting)
# delete
index.delete(doc.doc_id) # fails silently
len(simple_index.docstore.docs)