Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The following page has been changed by NoblePaul: http://wiki.apache.org/solr/Solrj ------------------------------------------------------------------------------ String url = "http://localhost:8983/solr"; SolrServer server = new CommonsHttpSolrServer( url ); - }}} + }}} + [[Anchor(xmlparser)]] == Setting XMLResponseParser == SolrJ uses a binary format as the default format now. For users with Solr 1.2 or older versions of Solr 1.3 must explicitly ask SolrJ to use XML format. {{{ @@ -194, +195 @@ }}} All the setter/add methods return its instance . Hence these calls can be chained + == Setting the classpath == + SolrJ is a part of the [http://people.apache.org/builds/lucene/solr/nightly/ nightly distribution] . The jars required in the classparth for SolrJ are, + * commons-io-1.3.1.jar + * commons-httpclient-3.1.jar + * commons-codec-1.3.jar + * commons-logging-1.0.4.jar + * apache-solr-common-nightly.jar + * apache-solr-solrj-nightly.jar + + If you are using an Solr 1.2 or an old version of Solr 1.3 add the stax jars too. Do not forget to set the [#xmlparser XML parser] + * stax-1.2.0-dev.jar + * stax-api-1.0.jar + * stax-utils.jar +
