private static String[] setgetAll(SolrDocument doc, String solrField) {
    Collection<Object> value_col = doc.getFieldValues(solrField);
    Collection<Object> isnull_col = doc.getFieldValues(solrField + IS_NULL_FIELD_SUFFIX);

    if (value_col == null || isnull_col == null) {
      // System.out.println("returing empty " + field.solrName());
      // System.out.println("valuecol " + (value_col == null));
      // System.out.println("isnull " + (isnull_col == null));

      return new String[] {};
    }

    Boolean[] isnull = isnull_col.toArray(new Boolean[] {});
    String[] values = value_col.toArray(new String[] {});

    for (int i = 0; i < values.length; i++) {
      if (isnull[i]) {
        values[i] = null;
      }
    }

    return values;
  }