You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2008/09/23 21:23:57 UTC
[Solr Wiki] Update of "Solrj" by ShalinMangar
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 ShalinMangar:
http://wiki.apache.org/solr/Solrj
The comment on the change is:
Updating for 1.3 release and availability in Maven
------------------------------------------------------------------------------
}}}
All the setter/add methods return its instance . Hence these calls can be chained
+
- == Setting the classpath ==
+ = 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,
+
+ == Ant ==
+ SolrJ is a part of the 1.3.0 release. The jars required in the classpath 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-common-1.3.0.jar
- * apache-solr-solrj-nightly.jar
+ * apache-solr-solrj-1.3.0.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]
+ If you are using an Solr 1.2, 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
+ * geronimo-stax-api_1.0_spec-1.0.1.jar
+ * wstx-asl-3.2.7.jar
* stax-utils.jar
+ The above jars can be found in the dist/solrj-lib directory of the Solr 1.3.0 download.
+
+ == Maven ==
+ Solrj is available in the official Maven repository. Add the following dependency to your pom.xml to use SolrJ
+
+ {{{
+ <dependency>
+ <artifactId>solr-solrj</artifactId>
+ <groupId>org.apache.solr</groupId>
+ <version>1.3.0</version>
+ <type>jar</type>
+ <scope>compile</scope>
+ </dependency>
+ }}}
+
+ If you need to use the !EmbeddedSolrServer, you need to add the solr-core dependency too.
+ {{{
+ <dependency>
+ <artifactId>solr-core</artifactId>
+ <groupId>org.apache.solr</groupId>
+ <version>1.3.0</version>
+ <type>jar</type>
+ <scope>compile</scope>
+ </dependency>
+ }}}
+