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: default_state(DB, Uri, Stamp) ->
     {_UriId, M1} = get_name_id(DB, <<>>, #{}),
     {_XmlId, M2} = get_name_id(DB, <<"http://www.w3.org/XML/1998/namespace">>, M1),
     #{doc_id   => {Uri,Stamp}, % unique document ID
       writer   => [],       % index writer/collector process 
       pos      => 0,        % current position    -> simply counts forward
       parent   => <<>>,     % node stack  -> each node Pos is appended, makes up the unique NodeId
  
negative.code:        timeout
     end.
  
  -define(MAX_POST, 5000).
  
  
  wait_index_writer(Pid) ->
  