Wednesday, April 8, 2009

Spring by Example Update (1.02)

Spring by Example Utils' HttpClientTemplate, HttpClientOxmTemplate, and SolrOxmClient are used for making different Apache Solr client requests. Solr provides an XML based API over HTTP to the Apache Lucene search engine. Spring OXM is used for marshalling and unmarshalling requests using a custom marshaller made with dom4j.

The SolrOxmClient was added to the Spring by Example Utils module. The SolrOxmClient provides for easier client communication with Apache Solr. It marshalls/unmarshalls searches and updates to and from a JavaBean. It also allows calls to commit, rollback, and optimize. It is built on top of HttpClientTemplate and HttpClientOxmTemplate.