Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "Solrj" page has been changed by Thyzz. The comment on this change is: added some extra information about BinaryRequestWriter. http://wiki.apache.org/solr/Solrj?action=diff&rev1=49&rev2=50 -------------------------------------------------- /!\ Note -- Reuse the instance of !SolrServer if you are using this feature (for performance ) == Setting the RequestWriter == - <!> [[Solr1.4]] SolrJ lets you upload content in XML and Binary format. Default is set to be XML. Use the following to upload using Binary format. this is the same format which SolrJ uses to fetch results. + <!> [[Solr1.4]] SolrJ lets you upload content in XML and Binary format. Default is set to be XML. Use the following to upload using Binary format. This is the same format which SolrJ uses to fetch results, and can greatly improve performance as it reduces XML marshalling overhead. {{{ server.setRequestWriter(new BinaryRequestWriter()); + }}} + /!\ Note -- be sure you have also enabled the "BinaryUpdateRequestHandler" in your solrconfig.xml + for example like: + {{{ + <requestHandler name="/update/javabin" class="solr.BinaryUpdateRequestHandler" /> }}} == Reading Data from Solr == * Get an instance of server first
