anchor.diff:           Map#{Key => Increment}
      end.
   
  +% append the node id to the pre-encoded doc id
  +encode(NodeId, DocIdEnc) ->
  +   <<DocIdEnc/binary, (sext:encode(NodeId))/binary>>.   
  +
  +% path the doc id to have a count of 2 instead of 1.
  +patch_encode(Term) ->
  +   case sext:encode(Term) of
  +      <<16,0,0,0,1,Rest/binary>> ->
  +         <<16,0,0,0,2,Rest/binary>>
  +   end.
  +
  
positive.code:    ok.
  
  
  post_node_indexes(Writer, DocId, NodeId, NodeBin, PathId, Counter) ->
     Props = term_to_binary({NodeBin, PathId}),
     Counter2 = update_counter(Counter, PathId, 1),
     Postings = 
       [{path, {DocId, PathId}, NodeId},
        {node, sext:encode({DocId, NodeId}), Props}
        ],
     Writer ! {postings, self(), Postings},
     _ = receive continue -> ok end,
     Counter2.
  
  post_namespace_node(Writer, DocId, NodeId, UriId, Prefix) ->
     Postings = 
       [{namespace, {DocId, NodeId}, {UriId, Prefix}}],
     Writer ! {postings, self(), Postings},
  
negative.code:        timeout
     end.
  
  -define(MAX_POST, 5000).
  
  
  wait_index_writer(Pid) ->
  