You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2013/08/20 15:35:03 UTC

[Solr Wiki] Trivial Update of "Solrj" by CassandraTargett

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 CassandraTargett:
https://wiki.apache.org/solr/Solrj?action=diff&rev1=74&rev2=75

Comment:
Fix some badly redirecting javadoc links

  Solrj uses slf4j-api 1.5.5 so you have to use slf4j-simple 1.5.5 or other binding with appropriate version. See [[http://www.slf4j.org/faq.html#IllegalAccessError|slf4j FAQ]].
  
  = HttpSolrServer =
- The [[http://lucene.apache.org/solr/api/org/apache/solr/client/solrj/impl/HttpSolrServer.html|HttpSolrServer]] uses the [[http://jakarta.apache.org/httpcomponents/httpclient-3.x/|Apache Commons HTTP Client]] to connect to solr.  Note: CommonsHttpSolrServer was changed to HttpSolrServer and  StreamingUpdateSolrServer is now ConcurrentUpdateSolrServer as of solr 4.0.
+ The [[http://lucene.apache.org/solr/api/solr-solrj/org/apache/solr/client/solrj/impl/HttpSolrServer.html|HttpSolrServer]] uses the [[http://jakarta.apache.org/httpcomponents/httpclient-3.x/|Apache Commons HTTP Client]] to connect to solr.  Note: CommonsHttpSolrServer was changed to HttpSolrServer and  StreamingUpdateSolrServer is now ConcurrentUpdateSolrServer as of solr 4.0.
  
  {{{
    String url = "http://localhost:8983/solr";
@@ -158, +158 @@

  /!\ Note -- ''Isn't !EmbeddedSolrServer not considered a "Best Practice"?  Perhaps some issue with isolation of JVMs.''
  
  = Usage =
- Solrj is designed as an extendable framework to pass [[http://lucene.apache.org/solr/api/org/apache/solr/client/solrj/SolrRequest.html|SolrRequest]] to the [[http://lucene.apache.org/solr/api/org/apache/solr/client/solrj/SolrServer.html|SolrServer]] and return a [[http://lucene.apache.org/solr/api/org/apache/solr/client/solrj/SolrResponse.html|SolrResponse]].
+ Solrj is designed as an extendable framework to pass [[http://lucene.apache.org/solr/api/solr-solrj/org/apache/solr/client/solrj/SolrRequest.html|SolrRequest]] to the [[http://lucene.apache.org/solr/api/solr-solrj/org/apache/solr/client/solrj/SolrServer.html|SolrServer]] and return a [[http://lucene.apache.org/solr/api/solr-solrj/org/apache/solr/client/solrj/SolrResponse.html|SolrResponse]].
  
- For simplicity, the most common commands are modeled in the [[http://lucene.apache.org/solr/api/org/apache/solr/client/solrj/SolrServer.html|SolrServer]]:
+ For simplicity, the most common commands are modeled in the [[http://lucene.apache.org/solr/api/solr-solrj/org/apache/solr/client/solrj/SolrServer.html|SolrServer]]:
  
  == Adding Data to Solr ==
   * Get an instance of server first.  For a local server, use HttpSolrServer:
@@ -225, +225 @@

  
  === Streaming documents for an update ===
  
- In most cases [[http://lucene.apache.org/solr/api/org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServer.html|ConcurrentUpdateSolrServer]] will suit your needs. Alternatively, the workaround presented below can be applied.
+ In most cases [[http://lucene.apache.org/solr/api/solr-solrj/org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServer.html|ConcurrentUpdateSolrServer]] will suit your needs. Alternatively, the workaround presented below can be applied.
  
  This is the most optimal way of updating all your docs in one http request.
  
@@ -489, +489 @@

  {{{
      SolrServer server = getSolrServer();
  }}}
-  * Construct a [[http://lucene.apache.org/solr/api/org/apache/solr/client/solrj/SolrQuery.html|SolrQuery]]
+  * Construct a [[http://lucene.apache.org/solr/api/solr-solrj/org/apache/solr/client/solrj/SolrQuery.html|SolrQuery]]
  
  {{{
      SolrQuery query = new SolrQuery();