anchor.diff:                FieldType = "string"
             end,
             Field = join_fields(re:split(RawField, "(?=[A-Z])"), []),
  -          io:format("Field: ~s~n", [string:to_lower(Field)]),
  -          io:format("Type: ~s~n", [FieldType]),
  +          lager:info("Field: ~s~n", [string:to_lower(Field)]),
  +          lager:info("Type: ~s~n", [FieldType]),
             Data = {field, [{name, string:to_lower(Field)}, get_solr_type(list_to_atom(FieldType)), {indexed, "true"}, {stored, "true"}], []},
             get_all_lines(Device, FileName, [Data | IndexedFields]);
           nomatch ->
  
positive.code:   case file:list_dir(Top) of
      {ok, Files} ->
        files(Top, Files, Re, []),
        io:fwrite("If you are updating a schema remember to run \"rp(yz_index:reload(<<\"index_name\">>)).\" through riak attach~n");
      {error, Reason}  ->
        {error, {Top, Reason}}
    end.
  
negative.code:       Data2 = {schema, [{name, Type}, {version, "1.5"}], Fields},
        Prolog = ["<?xml version=\"1.0\" encoding=\"UTF-8\"?>"],
        file:write_file("/tmp/" ++ Type ++ ".xml", xmerl:export_simple([Data2], xmerl_xml, [{prolog, Prolog}])),
        lager:info("XML File: ~s.xml~n", [Type]),
        if
          length(IndexedFields) > 0 ->
            create_index("/tmp/" ++ Type ++ ".xml");
          true ->
            lager:info("Model ~p without indexed fields", [Type])
        end;
      Line ->
        case re:run(Line, "%- indexed") of
          {match, _} ->
  