anchor.diff:  %% -------------------------------------------------------------------
   %%
  -%% Copyright (c) 2007-2010 Basho Technologies, Inc.  All Rights Reserved.
  +%% Copyright (c) 2007-2012 Basho Technologies, Inc.  All Rights Reserved.
   %%
   %% -------------------------------------------------------------------
   
  
positive.code: %% @doc Repair the index at the given `Partition'.
  -spec repair(partition()) ->
                      {ok, Pairs::[{partition(), node()}]} |
                      {down, Down::[{partition(), node()}]}.
  repair(Partition) ->
      Service = riak_search,
      MP = {?MODULE, Partition},
      FilterModFun = {?MODULE, repair_filter},
      riak_core_vnode_manager:repair(Service, MP, FilterModFun).
  
  %% @doc Get the status of the repair process for the given `Partition'.
  -spec repair_status(partition()) -> no_repair | repair_in_progress.
  
negative.code:     {reply, Reply, VState#vstate{bstate=NewBState}}.
  
  %% @private
  default_object_nval() ->
      riak_core_bucket:n_val(riak_core_config:default_bucket_props()).
  
  %% @private
  object_info({I, {F, T}}) ->
      Hash = riak_search_ring_utils:calc_partition(I, F, T),
      {I, Hash}.
  
  %% @private
  schema_nval_map() ->
      [{S:name(), S:n_val()} || S <- riak_search_config:get_all_schemas()].
  