anchor.diff:      end.
   
   transform_query(RawQuery) when is_binary(RawQuery) ->
  -    case lucene_syntax:parse(RawQuery) of
  +    case chef_lucene:parse(RawQuery) of
           Query when is_binary(Query) ->
               ibrowse_lib:url_encode(binary_to_list(Query));
           _ ->
  
positive.code: 
  execute_solr_query(Query, ObjType, Db, S) ->
      Url = solr_query_url(ObjType, Db, Query),
      SolrDataRaw = solr_query(Url),
      % FIXME: Probably want a solr module that knows how to query solr
      % and parse its responses.
      SolrData = mochijson2:decode(SolrDataRaw),
      DocList = ej:get({<<"response">>, <<"docs">>}, SolrData),
      Ids = [ ej:get({<<"X_CHEF_id_CHEF_X">>}, Doc) || Doc <- DocList ],
      Docs = chef_otto:bulk_get(S, ?db_for_guid(Db), Ids),
      % 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},
              {<<"total">>, length(Docs)}
             ]},
      couchbeam_util:json_encode(Ans).
  
  
negative.code:     {GetHeader, State1} = get_header_fun(Req, State),
      {Malformed, Req1, State2} =
          try
              % chef_authn:validate_headers(GetHeader, 300),
              % transform query first to avoid possible db fetch for org
              % guid for bad queries
              Query = transform_query(wrq:get_qs_value("q", Req)),
  