anchor.diff:      Query#chef_solr_query{filter_query = "+X_CHEF_database_CHEF_X:chef_" ++
                                 binary_to_list(OrgGuid) ++ " " ++ FilterQuery}.
   
  +-spec search(#chef_solr_query{}) ->
  +                    {ok, non_neg_integer(), non_neg_integer(), [binary()]} |
  +                    {error, {solr_400, string()}} |
  +                    {error, {solr_500, string()}}.
   search(#chef_solr_query{}=Query) ->
       {ok, SolrUrl} = application:get_env(chef_index, solr_url),
       Url = SolrUrl ++ make_solr_query_url(Query),
  
positive.code:     'environment';
  index_type(DataBag) ->
      {'data_bag', list_to_binary(DataBag)}.
  
  
  check_query(RawQuery) ->
      case RawQuery of
  
negative.code: 
  -include("chef_solr.hrl").
  
  -spec make_query_from_params(binary()|string(),
                               string(),
                               non_neg_integer(),
                               non_neg_integer()) -> #chef_solr_query{}.
  make_query_from_params(ObjType, QueryString, Start, Rows) ->
      % TODO: super awesome error messages
      FilterQuery = make_fq_type(ObjType),
  