anchor.diff:      MaxSearchResults = app_helper:get_env(riak_search, max_search_results),
       F = fun(Results, {Acc, AccCount}) ->
                   NewAcc = Results ++ Acc,
  -                NewAccCount = AccCount + length(Acc),
  +                NewAccCount = AccCount + length(Results),
                   case NewAccCount > MaxSearchResults of
                       true ->
                           throw({too_many_results, QueryOps});
  
positive.code:     FlatIndexAcc = lists:flatten(IndexAcc),
      index_terms(FlatIndexAcc),
      ok.
      
  
  %% Index the specified term - better to use the plural 'terms' interfaces
  index_term(Index, Field, Term, DocID, Props) ->
  
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}.
  