anchor.diff:  extract_path(Item, Path) ->
       ej:get(list_to_tuple(Path), Item, null).
   
  +make_search_results(BulkGetFun, {Ids, Solr4Info}, BatchSize, Start, NumFound) ->
  +    {DbHits, Results} = make_search_results(BulkGetFun, Ids, BatchSize, Start, NumFound),
  +    log_differences(DbHits, Ids, Solr4Info),
  +    {DbHits, Results};
  +    
   make_search_results(BulkGetFun, Ids, BatchSize, Start, NumFound) ->
       Ans0 = search_result_start(Start, NumFound),
       {N, Ans1} = fetch_result_rows(Ids, BatchSize, BulkGetFun, {0, Ans0}),
  
positive.code:                              end
                       end).
  
  
  gather_solr_queries(Pids, Query, OrgName) ->
      log_differences([ receive
            {Pid, Result} ->
                Result
        after envy:get(chef_wm, solr_timeout, 30000, pos_integer) ->
                erlang:error({solr_query_timeout, Pid})
        end
        || Pid <- Pids ], Query, OrgName).
  
  log_differences([{error, _} = Solr1, {_,_,_,Solr4}] = Results, Query, OrgName) ->
      lager:log(debug, [{solr_diff, ?MODULE}], "~p",
                [?LOG_DIFF_TUPLE(Solr1, Solr4, Query, OrgName)]),
      Results;
  log_differences([{_,_,_,Solr1}, {error, _} = Solr4] = Results, Query, OrgName) ->
      lager:log(debug, [{solr_diff, ?MODULE}], "~p",
                [?LOG_DIFF_TUPLE(Solr1, Solr4, Query, OrgName)]),
      Results;
  log_differences([{error, _}, {error, _}] = Results, _Query, _OrgName) ->
      Results;
  log_differences([{_,_,_,OldSolrResults}, {_,_,_,NewSolrResults}] = Results, Query, OrgName) ->
      case chef_wm_util:lists_diff(OldSolrResults, NewSolrResults) of
          {[], []} ->
              ok;
          {Solr1, Solr4} ->
              lager:log(debug, [{solr_diff, ?MODULE}], "~p",
                                      [?LOG_DIFF_TUPLE(Solr1, Solr4, Query, OrgName)])
      end,
      Results.
  
  spawn_solr_query(Label, Url, Query, ReqId) ->
      Parent = self(),
  
negative.code:                 State#base_state{log_msg=Why}}
      end.
  
  solr_ids_length({Solr1Ids, _}) ->
      length(Solr1Ids);
  solr_ids_length(Solr1Ids) ->
      length(Solr1Ids).
  
  %% Return current app config value for batch size, defaulting if absent.
  batch_size() ->
      envy:get(chef_wm, bulk_fetch_batch_size, ?DEFAULT_BATCH_SIZE, positive_integer).
  