@Override public void write(TextResponseWriter writer, String name, Fieldable f) throws IOException { writer.writeBool(name, f.stringValue().charAt(0) == 'T'); }
@Override public void write(TextResponseWriter writer, String name, IndexableField f) throws IOException { writer.writeDate(name, toExternal(f)); }
/* (non-Javadoc) * @see org.apache.solr.schema.TextField#write(org.apache.solr.response.TextResponseWriter, java.lang.String, org.apache.lucene.document.Fieldable) */ @Override public void write(TextResponseWriter writer, String name, Fieldable f) throws IOException { writer.writeStr(name, toExternal(f), true); }
@Override public void write(TextResponseWriter writer, String name, IndexableField f) throws IOException { String sval = f.stringValue(); writer.writeDouble(name, NumberUtils.SortableStr2double(sval)); }
@Override public void write(TextResponseWriter writer, String name, StorableField f) throws IOException { writer.writeStr(name, f.stringValue(), true); }
@Override public void write(TextResponseWriter writer, String name, Fieldable f) throws IOException { writer.writeVal(name, toObject(f)); }