: All the values used in the standard handlers are in the list, so this : is fine. I'm writing some custom handlers where it would be nice to : put an arbitrary object into the response and have it printed out with : toString()
Keep in mind, there is a contract about what constitutes "Returnable data" http://lucene.apache.org/solr/api/org/apache/solr/request/SolrQueryResponse.html#returnable_data ...what you're describing would be a modification of that contract. personaly, i'd prefer we encourage RequestHandler writers to stick to that contract and unwind their objects themselves so that their RequestHandlers can be reused with any ResponseWRiter ... but i agree it would be handy to add a... public void writeUnknown(String name, Object val, boolean needsEscaping) { writeStr(name, val.getClass().getName() + ':' + val.toString(), needsEscaping); } ...to the base writers so that people could override in subclasss for special purposes and then call that in the else case. -Hoss