anchor.diff:                    case lists:nth(length(FilePattern), FilePattern) of
                       $* ->
                         Prefix = lists:sublist(FilePattern, length(FilePattern) - 1),
  -                      #view_query_args{start_key = [UidBin, list_to_binary(Prefix)], end_key = [UidBin, end_key_for_prefix(Prefix)]};
  -                    _ -> #view_query_args{keys = [[UidBin, list_to_binary(FilePattern)]]}
  +                      #view_query_args{start_key = [UidBin, dao_helper:name(Prefix)], end_key = [UidBin, end_key_for_prefix(Prefix)]};
  +                    _ -> #view_query_args{keys = [[UidBin, dao_helper:name(FilePattern)]]}
                     end
                 end,
   
  
positive.code:   UidBin = case FileCriteria#file_criteria.uid of
               null -> null;
               Uid when is_binary(Uid) -> Uid;
               Uid when is_list(Uid) -> list_to_binary(Uid);
               Uid when is_integer(Uid) -> list_to_binary(integer_to_list(Uid))
             end,
  
    QueryArgs = case FilePattern of
  
negative.code:     fun(MetaId) ->
        lists:map(
          fun(DesiredType) ->
            [dao_helper:name(MetaId), DesiredType]
          end,
          DesiredTypes)
      end,
  