for (int i = 0; i < fields.length(); i++) {
JSONObject thisField = fields.getJSONObject(i);
String name = thisField.getString("name");
String luceneName = thisField.optString("lucenename",name);
if (luceneName == null) name = null;
double boost = thisField.optDouble("boost", 1.0);
boolean regexp = thisField.optBoolean("regexp", false);
String type = thisField.optString("type","string");
IndexType t = IndexType.getIndexTypeFromString(type);
if (t == IndexType.DATE) {
try {