anchor.diff:      end.
   
   %% Make an indexed document under Index/DocId from the RiakObject
  --spec make_indexed_doc(index(), docid(), riak_object(), extractdef()) -> ok.
  +-spec make_indexed_doc(index(), docid(), riak_object(), extractdef()) -> idxdoc().
   make_indexed_doc(Index, DocId, RiakObject, Extractor) ->
       Fields = run_extract(RiakObject, Extractor),
       IdxDoc0 = riak_indexed_doc:new(DocId, Fields, [], Index),
  
positive.code: 
  -type index() :: binary().
  -type docid() :: binary().
  
  -type search_fields() :: [{search_field(),search_data()}].
  -type search_field() :: string().
  
negative.code:     SearchClient:index_terms(Postings),
  
      %% Store the indexed_doc for next time
      riak_indexed_doc:put(RiakClient, NewIdxDoc).
  
  %% Remove any old index entries if they exist
  -spec remove_old_entries(riak_client(), search_client(), index(), docid()) -> ok.
  