private static Set<String> getStringSet(SolrDocument doc, SolrName field) {
    Set<String> set = new HashSet<String>();

    if (doc.containsKey(field.solrName())) {
      for (Object val : doc.getFieldValues(field.solrName())) {
        set.add((String) val);
      }
    }

    return set;
  }
 private static String[] setgetAll(SolrDocument doc, SolrName field) {
   return setgetAll(doc, field.solrName());
 }
 private static String getFirst(SolrDocument doc, SolrName field) {
   return (String) doc.getFirstValue(field.solrName());
 }
 private static String get(SolrDocument doc, SolrName field) {
   Object temp = doc.getFieldValue(field.solrName());
   if (temp instanceof ArrayList) return (String) ((ArrayList) temp).get(0);
   return (String) temp;
 }
 private static boolean has(SolrDocument doc, SolrName field) {
   return doc.containsKey(field.solrName());
 }