# update and deletion tests # add before opening add {"_id":"1", "A":[{"B":"B2","C":"C2"},{"B": "b1","C":"C2"}]}; Index isn't open create target/tests/updatedeletion; add {"_id":"1", "A":[{"B":"B2","C":"C2"},{"B": "b1","C":"C2"}]}; "1" add {"_id":"2", "A":[{"B":"B2","C":[{"D":"D"}]},{"B": "b1","C":"C2"}]}; "2" add {"_id":"3", "A":"Multi word sentence"}; "3" add {"_id":"4", "A":"%&%}{}@);€"}; "4" add {"_id":"5", "A":"word"}; "5" # delete before committing del 5; Write error: Attempt to delete doc with same _id added earlier # delete what doesn't exist del 6; not found commit; del 5; ok add {"_id":"5", "A":"word"}; Write error: Attempt to insert multiple docs with same _id # add again without committing add {"_id":"5", "A":"word"}; Write error: Attempt to insert multiple docs with same _id commit; # add existing document add {"_id":"5", "A":"wassup!"}; "5" find {A: == "wassup!"}; [ "5" ] find {A: == "word"}; []