anchor.diff:  process_terms_1(IndexFun, BatchSize, PreflistCache, Terms) ->
       %% Split off the next chunk of terms.
       case length(Terms) > BatchSize of
  -        true -> 
  +        true ->
               {Batch, Rest} = lists:split(BatchSize, Terms);
  -        false -> 
  +        false ->
               {Batch, Rest} = {Terms, []}
       end,
   
  
positive.code:                 %% Get the terms to index...
                  IndexTerms = riak_indexed_doc:postings(IdxDoc),
                  NewIndexAcc = [IndexTerms|IndexAccIn],
                  
                  %% Store the document...
                  RiakObj = riak_object:update_value(OldRiakObj, IdxDoc),
                  NewRiakObjsAcc = [RiakObj|RiakObjsAccIn],
                  
                  %% Return.
                  {NewRiakObjsAcc, NewDeleteAcc, NewIndexAcc}
          end,
  
negative.code:                   riak_search_utils:to_list(Query)),
      {ok, riak_search_op:preplan(Ops)}.
  
  
  
  %% Run the Query, return the list of keys.
  %% Timeout is in milliseconds.
  %% Return the {Length, Results}.
  