: So - is there any Solr code that I can look at - that imposes the : restriction that the type has to be an int, string ,List (of what : allowed objects ? ) . Map ( allowed key, value types ? ) etc.
see the javadocs for SolrQueryResponse... http://lucene.apache.org/solr/api/org/apache/solr/request/SolrQueryResponse.html The code won't prevent you from adding anything else, but if you do add something else, the ResponseWriters are free to output it however they see fit (usually by calling toString()) -Hoss