anchor.diff:      end.
   
   transform_query(RawQuery) when is_binary(RawQuery) ->
  -    io:format("~p~n", [RawQuery]),
       case chef_lucene:parse(RawQuery) of
           Query when is_binary(Query) ->
               ibrowse_lib:url_encode(binary_to_list(Query));
  
positive.code:             Id;
          undefined ->
              OrgName = list_to_binary(wrq:path_info(organization_id, Req)),
              io:format("OrgName: ~p~n", [OrgName]),
              case chef_otto:fetch_org_id(S, OrgName) of
                  not_found -> throw(org_not_found);
                  Guid -> Guid
  
negative.code:     %% remove couchdb revision ID from results, mark as objects for JSON
      %% encoding.
      JSONDocs = [{lists:keydelete(<<"_rev">>, 1, Doc)} || Doc <- Docs],
      Ans = {[
              {<<"rows">>, JSONDocs},
              {<<"start">>, 0},
  