So, I have a java based web project that displays information retrieved from 3 separate services, hosted on different servers, I use Apache Http Client to
String id; //input parameter to search with
SolrQuery q = new SolrQuery();
q.set("q","id:" + id);
q.set("fl","*"); // fetch all fields to map to corresponding POJO
QueryResponse queryResponse = solrClient.query("My Collection Name", q);
//because I search by ID, I expect a list of just one element
MyPojo myPojo = queryResponse.getBeans(MyPojo.class).get(0);