solr/server/solr-webapp/webapp/js/scripts/documents.js
function (data) {
        var field_select = $("#wiz-field-select", wizard);
        field_select.empty();
        $.each(data.fields,
            function (i, item) {
              //console.log("i[" + i + "]=" + item.name);
              if (item.name != "_version_"){
                select_options += '<option name="' + item.name + '">'
                  + item.name + '</option>';
              }
            });
        //console.log("select_options: " + select_options);
        //fill in the select options
        field_select.append(select_options);
      }
function (data) {
        var field_select = $("#wiz-field-select", wizard);
        field_select.empty();
        $.each(data.fields,
            function (i, item) {
              //console.log("i[" + i + "]=" + item.name);
              if (item.name != "_version_"){
                select_options += '<option name="' + item.name + '">'
                  + item.name + '</option>';
              }
            });
        //console.log("select_options: " + select_options);
        //fill in the select options
        field_select.append(select_options);
      }
TODO: handle dynamic fields TODO: get the unique key, too