String text;
if (f.binaryValue() != null) {
text = Util.bytesToHex(f.binaryValue(), true);
setBoolean(cbBin, "selected", true);
} else {
text = f.stringValue();
}
setString(sText, "text", text);
setString(fBoost, "text", String.valueOf(f.boost()));
IndexableFieldType t = f.fieldType();
setBoolean(cbStored, "selected", t.stored());