I am developing this system in which I adding custom SearchComponents
(last-components) after all the post-processing of the query.

server:
-------
MyComponent extends SearchComponent :


@Override
public void process(ResponseBuilder rb)  {
   MySerializableType obj = new MySerializableType();
   //populate obj after processing
   rb.rsp.add("myresult" ,  obj );
}

}


client:
--------
QueryResponse rsp = commonsHttpSolrServer.query( mySolrQuery);
MySerializableType obj  = rsp.getResponse().get("myresult");

I was curious if the above mentioned code would work for any kind of
serializable type , T, as long as it implements Serializable . Would
there be any restrictions on the same (like only List of Strings -
List of Integers etc).
Thanks.

Reply via email to