When updating a document in search, update termIdMap so that invariants hold
Merge branch 'master' of https://github.com/haskell/hackage-server