When updating a document in search, update termIdMap so that invariants hold
Merge pull request #77 from gracenotes/search-delete

When updating a document in search, update termIdMap so that invariants hold