Beispiel #1
0
 @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);
 }
Beispiel #4
0
 @Override
 public void write(TextResponseWriter writer, String name, IndexableField f) throws IOException {
   String sval = f.stringValue();
   writer.writeDouble(name, NumberUtils.SortableStr2double(sval));
 }
Beispiel #5
0
 @Override
 public void write(TextResponseWriter writer, String name, StorableField f) throws IOException {
   writer.writeStr(name, f.stringValue(), true);
 }
Beispiel #6
0
 @Override
 public void write(TextResponseWriter writer, String name, Fieldable f) throws IOException {
   writer.writeVal(name, toObject(f));
 }