You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Jan Høydahl (Jira)" <ji...@apache.org> on 2021/10/29 08:38:00 UTC

[jira] [Comment Edited] (SOLR-599) Lightweight SolrJ client

    [ https://issues.apache.org/jira/browse/SOLR-599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17435849#comment-17435849 ] 

Jan Høydahl edited comment on SOLR-599 at 10/29/21, 8:37 AM:
-------------------------------------------------------------

I created SOLR-1573 to start modularizing solrj and splitting it in modules. This way solrj-core can be slim with few or no external dependencies (no XML, Zookeeper, Netty etc). Question is what SolrClient impl the {{solrj-core}} module will include. Now that we require JDK11 in 9.0, we can re-visit this idea of a no-dep SolrJ client using JDK's new Http client. That client could be the only supported in solrj-core, and you'd have to add {{solrj-jetty}} in order to get a more capable client for whatever reason, probably solr-core would use the netty client, but simple uses cases in apps would not need it?  WDYT?


was (Author: janhoy):
I created SOLR-1573 to start modularizing solrj and splitting it in modules. This way solrj-core can be slim with few external dependencies (XML, Zookeeper, Netty etc). Question is what SolrClient impl the {{solrj-core}} module will include. Now that we require JDK11 in 9.0, we can re-visit this idea of a no-dep SolrJ client using JDK's new Http client. That client could be the only supported in solrj-core, and you'd have to add {{solrj-jetty}} in order to get a more capable client for whatever reason? WDYT?

> Lightweight SolrJ client
> ------------------------
>
>                 Key: SOLR-599
>                 URL: https://issues.apache.org/jira/browse/SOLR-599
>             Project: Solr
>          Issue Type: Improvement
>          Components: clients - java, SolrJ
>            Reporter: Shalin Shekhar Mangar
>            Priority: Minor
>             Fix For: 4.9, 6.0
>
>         Attachments: SOLR-599-fix-for-SolrJ-on-GAE.patch, SOLR-599.patch, SOLR-599.patch
>
>
> SolrJ provides a SolrServer implementation backed by commons-httpclient which introduces many dependency jars (commons-codec, commons-io and commons-logging). Apart from that SolrJ also uses StAX API for XML parsing which introduces dependencies like stax-api, stax and stax-utils.
> This enhancement will add a SolrServer implementation backed by java.net.HttpUrlConnection and will use BinaryResponseParser as the default response parser. Using this basic implementation out of the box would require no dependencies on either commons-httpclient or StAX. The only dependency would be on solr-commons making this a very lightweight and distribution friendly Java client for Solr.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org