...
Code Block | ||||
---|---|---|---|---|
| ||||
//define the route to perform a basic query from("direct:querySolrquery") .recipientList(simple("http://localhost:8983/solr/select/?q=${body}")) .convertBodyTo(String.class); ... //query for an id of '1234' (url encoded) String responseXml = (String) template.requestBody("direct:querySolrquery", "id:1234id%3A1234"); |
For more information, see these resources...
...